@font-face {
    font-family: "Brady Bunch Remastered";
    src: url("/fonts/3ccd0e1b42575004db1628be7d0a8522.eot");
    src: url("/fonts/3ccd0e1b42575004db1628be7d0a8522ie.eot") format("embedded-opentype"),
         url("/fonts/3ccd0e1b42575004db1628be7d0a8522.woff") format("woff"),
         url("/fonts/3ccd0e1b42575004db1628be7d0a8522.woff2") format("woff2"),
         url("/fonts/3ccd0e1b42575004db1628be7d0a8522.ttf") format("truetype"),
         url("/fonts/Brady-Bunch-Remastered.ttf.svg") format("svg");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Lucida Handwriting Std";
    font-style: italic;
    font-weight: 400;
    src: local('Lucida Handwriting Std'), url(/fonts/LucidaHandwritingStdRg.woff) format('woff');
}

@font-face {
    font-family: "Lucida Handwriting Std";
    font-style: italic;
    font-weight: 250;
    src: local('Lucida Handwriting Std'), url(/fonts/LucidaHandwritingStdThin.woff) format('woff');
}

@font-face {
    font-family: "Lucida Handwriting Std";
    font-style: italic;
    font-weight: 300;
    src: local('Lucida Handwriting Std'), url(/fonts/LucidaHandwritingStdLight.woff) format('woff');
}

@font-face {
    font-family: "Lucida Handwriting Std";
    font-style: italic;
    font-weight: 600;
    src: local('Lucida Handwriting Std'), url(/fonts/LucidaHandwritingStdBold.woff) format('woff');
}

@font-face {
    font-family: "Lucida Handwriting Std";
    font-style: italic;
    font-weight: 800;
    src: local('Lucida Handwriting Std'), url(/fonts/LucidaHandwritingStdBlack.woff) format('woff');
}

body {
    font-family: 'Arial', 'Inter', 'Roboto', sans-serif;
    line-height: 1.3;
    word-wrap: break-word;
    /* overscroll-behavior: contain; - DÉSACTIVÉ car bloque le scroll iOS Safari */
    /* Prevent accidental pull-to-refresh */
    /* overflow-x: hidden; - DÉSACTIVÉ car peut bloquer le scroll iOS Safari */
}

b {
    font-weight: bold;
}

i {
    font-style: italic;
}

u {
    text-decoration: underline;
}

a {
    color: #FF6300;
    text-decoration: none;
    cursor: pointer;
}

header a {
    color: white;
}

header span {
    color: #FCB703;
    text-decoration: none;
}


/* Typography */
h1 {
    font-size: 1.5em;
    font-family: "Pacifico", sans-serif;
    text-transform: lowercase;
    text-shadow: 0.05em 0.1em 0 rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    flex-flow: column;
}

h1:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

h1:active {
    background-color: rgba(32, 32, 32, 0.2);
}

h1 a {
    flex: 1;
    line-height: 2.2;
    padding: 0 0.5em 0 0.7em;
    color: inherit;
    text-decoration: underline;
}

ul.clean {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

red {
    color: red;
}

.normal-color {
    color: #464646;
}

ul {
    margin-left: 30px;
    margin-top: 10px;
}

li
{
    margin-bottom : 5px;
}

/* =============================================================
   TOOLTIPS SÉMANTIQUES (.tooltip / .tooltiptext)
   ============================================================= */
.tooltip {
    position: relative;
    cursor: help;
    color: darkgoldenrod;
    font-size: inherit !important;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: auto;
    min-width: 200px;
    max-width: 600px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: inherit !important;

    /* Positionnement fixé pour échapper aux overflow:hidden parents */
    position: fixed;
    z-index: 99999;
    top: var(--tt-top, auto);
    left: var(--tt-left, 50%);
    transform: translateX(-50%);

    /* Effet de transition */
    opacity: 0;
    transition: opacity 0.3s;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
    pointer-events: none;
}

/* Ajustement si trop proche du bord gauche */
.tooltip:first-child .tooltiptext {
    transform: translateX(0);
}

/* Ajustement si trop proche du bord droit */
.tooltip:last-child .tooltiptext {
    transform: translateX(-100%);
}

/* Affichage au survol */
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Variante data-tooltip (généré par CKEditor) */
.tooltip[data-tooltip]::after {
    content: attr(data-tooltip);
    visibility: hidden;
    width: auto;
    min-width: 200px;
    max-width: 600px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: .9em;

    position: fixed;
    z-index: 99999;
    top: var(--tt-top, auto);
    left: var(--tt-left, 50%);
    transform: translateX(-50%);

    opacity: 0;
    transition: opacity 0.3s;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
    pointer-events: none;
}

.tooltip[data-tooltip]:hover::after {
    visibility: visible;
    opacity: 1;
}

/* Masquage dans l'éditeur CKEditor — géré par sp-ck-tooltip-fix */