/* Site HighCo Data : en-tête, accueil et pied de page. Tout est sous .hcd pour ne toucher ni aux sites Envie de Plus
   et Haier ni aux styles repris du PHP. */

.hcd {
    --hcd-nuit: #1a283c;
    --hcd-nuit-2: #24364f;
    --hcd-turquoise: #00d5c3;
    --hcd-turquoise-fonce: #00796f; /* texte turquoise sur fond clair : contraste AA */
    --hcd-texte: #2f3542;
    --hcd-texte-doux: #5c6370;
    --hcd-fond: #f4f6f9;
    --hcd-blanc: #ffffff;
    --hcd-bordure: #e3e7ee;
    --hcd-rayon: 14px;
    --hcd-ombre: 0 10px 30px rgba(26, 40, 60, 0.10);

    background: var(--hcd-fond);
    color: var(--hcd-texte);
    font-family: 'ralewayregular', 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hcd p {
    margin: 0 0 5px;
}

.hcd .hcd-conteneur {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.hcd a:focus-visible,
.hcd summary:focus-visible {
    outline: 3px solid var(--hcd-turquoise);
    outline-offset: 3px;
}

/* ---------- Barre de navigation ---------- */

.hcd .hcd-entete {
    background: var(--hcd-nuit);
    overflow: visible;
    padding: 0;
}

.hcd .hcd-barre-interieur {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 18px;
    padding-bottom: 18px;
}

.hcd .hcd-logo img {
    display: block;
    height: 36px;
    width: auto;
}

/* style.css ajoute des marges à « header nav » (40 px), « header nav a » et « header nav span » (20 px) :
   avec des libellés plus longs (néerlandais), le menu passait sous le logo. */
.hcd .hcd-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px 20px;
    margin: 0;
    text-align: left;
    white-space: nowrap;
}

.hcd .hcd-nav a,
.hcd .hcd-nav span {
    margin: 0;
}

.hcd .hcd-nav a {
    display: inline-block;
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.hcd .hcd-nav a:hover,
.hcd .hcd-nav a[aria-current="page"] {
    color: var(--hcd-blanc);
    border-bottom-color: var(--hcd-turquoise);
}

.hcd .hcd-langues {
    display: inline-flex;
    gap: 2px;
    margin-left: 8px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.hcd .hcd-langues a {
    padding: 2px 10px;
    border: 0;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.hcd .hcd-langues a[aria-current="true"] {
    background: var(--hcd-turquoise);
    color: var(--hcd-nuit);
    font-family: 'ralewaybold', sans-serif;
}

/* ---------- Héros de l'accueil ---------- */

.hcd .hcd-heros {
    background:
        url('/bundles/acseoreclamationconso/img/marvin3.png') right 6% bottom -10px / auto 92% no-repeat,
        radial-gradient(circle at 80% 20%, var(--hcd-nuit-2), var(--hcd-nuit) 60%);
    padding: 52px 0 112px;
}

.hcd .hcd-heros-texte {
    max-width: 560px;
}

/* style.css impose « header h1 { width: 190px; margin… } » (ancien logo). */
.hcd .hcd-entete h1 {
    width: auto;
}

.hcd .hcd-heros h1 {
    color: var(--hcd-blanc);
    font-family: 'ralewaylight', sans-serif;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.05;
    margin: 0 0 14px;
    text-transform: none;
}

.hcd .hcd-heros-sous-titre {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.5;
    margin: 0 0 8px;
}

.hcd .hcd-heros-question {
    color: var(--hcd-turquoise);
    font-family: 'ralewaybold', sans-serif;
    font-size: clamp(20px, 2.4vw, 26px);
    margin: 0;
}

/* ---------- Boutons ---------- */

.hcd .hcd-bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 20px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-family: 'ralewaybold', sans-serif;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.hcd .hcd-bouton:hover {
    text-decoration: none;
}

.hcd .hcd-bouton-principal {
    background: var(--hcd-turquoise);
    color: var(--hcd-nuit);
    box-shadow: 0 6px 18px rgba(0, 213, 195, 0.28);
}

.hcd .hcd-bouton-principal:hover {
    background: #12e3d1;
    color: var(--hcd-nuit);
}

/* « En savoir + » : le « + » des traductions devient une pastille. */
.hcd .hcd-bouton span {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    font-family: Arial, sans-serif; /* le « + » de Raleway est minuscule */
    font-size: 15px;
    font-weight: bold;
    line-height: 1;
}

/* Flèche des liens : sans pastille, elle avance au survol. */
.hcd .hcd-bouton .hcd-fleche {
    border: 0;
    width: auto;
    font-size: 17px;
}

/* ---------- Cartes de l'accueil ---------- */

.hcd .hcd-principal {
    flex: 1;
}

.hcd .hcd-page {
    max-width: none;
    padding: 0;
}

.hcd .hcd-cartes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: -64px;
    position: relative;
}

.hcd .hcd-carte {
    background: var(--hcd-blanc);
    border-radius: var(--hcd-rayon);
    box-shadow: var(--hcd-ombre);
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-top: 4px solid transparent;
    transition: box-shadow 0.2s;
}

.hcd .hcd-carte:hover {
    box-shadow: 0 16px 40px rgba(26, 40, 60, 0.14);
}

.hcd .hcd-carte-accent {
    border-top-color: var(--hcd-turquoise);
}

.hcd .hcd-carte-picto {
    width: 36px;
    height: 36px;
    padding: 9px;
    box-sizing: content-box;
    background: rgba(0, 213, 195, 0.10);
    border-radius: 12px;
    margin-bottom: 14px;
}

.hcd .hcd-carte h2 {
    color: var(--hcd-nuit);
    font-family: 'ralewayextrabold', sans-serif;
    font-size: 19px;
    margin: 0 0 6px;
    text-transform: none;
}

.hcd .hcd-carte p {
    color: var(--hcd-texte-doux);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 16px;
}

.hcd .hcd-carte > .hcd-bouton,
.hcd .hcd-carte-depliant {
    margin-top: auto;
}

/* Courrier : le bouton « En savoir + » est le résumé d'un bloc dépliable (sans script). */
.hcd .hcd-carte-depliant summary {
    list-style: none;
    width: fit-content;
}

.hcd .hcd-carte-depliant summary::-webkit-details-marker {
    display: none;
}

.hcd .hcd-carte-depliant[open] summary span {
    transform: rotate(45deg);
}

.hcd .hcd-carte-depliant .hcd-adresse {
    margin-top: 14px;
}

.hcd .hcd-adresse {
    margin: 0;
    padding: 14px 16px;
    width: 100%;
    background: var(--hcd-fond);
    border-left: 3px solid var(--hcd-turquoise);
    border-radius: 8px;
    font-style: normal;
    font-size: 14px;
    line-height: 1.6;
    color: var(--hcd-texte);
    text-transform: uppercase;
}

.hcd .hcd-adresse .bluetxt {
    color: var(--hcd-nuit);
    font-family: 'ralewaybold', sans-serif;
}

.hcd .hcd-adresse .graytxt {
    color: var(--hcd-texte-doux);
    font-style: italic;
}

/* ---------- Aperçu de la FAQ ---------- */

.hcd .hcd-faq-apercu {
    max-width: 820px;
    margin: 72px auto 80px;
}

.hcd .hcd-faq-apercu h2 {
    color: var(--hcd-nuit);
    font-family: 'ralewayextrabold', sans-serif;
    font-size: clamp(24px, 3vw, 30px);
    text-align: center;
    margin: 0 0 28px;
    text-transform: none;
}

.hcd .hcd-faq-apercu details,
.hcd .faq details {
    background: var(--hcd-blanc);
    border: 1px solid var(--hcd-bordure);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: border-color 0.15s;
}

.hcd .hcd-faq-apercu details[open],
.hcd .faq details[open] {
    border-color: var(--hcd-turquoise);
}

.hcd .hcd-faq-apercu summary,
.hcd .faq summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 52px 16px 20px;
    position: relative;
    font-family: 'ralewaybold', sans-serif;
    color: var(--hcd-nuit);
}

.hcd .hcd-faq-apercu summary::-webkit-details-marker,
.hcd .faq summary::-webkit-details-marker {
    display: none;
}

.hcd .hcd-faq-apercu summary::after,
.hcd .faq summary::after {
    content: '+';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 213, 195, 0.14);
    color: var(--hcd-turquoise-fonce);
    display: grid;
    place-items: center;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
}

.hcd .hcd-faq-apercu details[open] summary::after,
.hcd .faq details[open] summary::after {
    content: '−';
}

.hcd .hcd-faq-apercu details > div,
.hcd .faq details > div {
    padding: 0 20px 18px;
    color: var(--hcd-texte-doux);
    line-height: 1.6;
    white-space: pre-line;
}

.hcd .hcd-lien-suite {
    display: block;
    width: fit-content;
    margin: 24px auto 0;
    color: var(--hcd-turquoise-fonce);
    font-family: 'ralewaybold', sans-serif;
    text-decoration: none;
}

.hcd .hcd-lien-suite:hover {
    text-decoration: underline;
}

/* ---------- Bandeau de titre des autres pages (FAQ, contact, mentions) ---------- */

.hcd .hcd-bandeau {
    background: linear-gradient(180deg, var(--hcd-nuit), var(--hcd-nuit-2));
    padding: 36px 0 44px;
}

.hcd .hcd-bandeau h1 {
    color: var(--hcd-blanc);
    font-family: 'ralewayextrabold', sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 8px;
    text-transform: none;
}

.hcd .hcd-bandeau h1 span {
    color: var(--hcd-turquoise);
}

.hcd .hcd-bandeau p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 720px;
    margin: 0;
}

/* ---------- Pages FAQ, contact et mentions légales (contenu repris du PHP) ---------- */

.hcd .faq,
.hcd .mentions-legales {
    max-width: 820px;
    margin: 40px auto 64px;
    padding: 0 24px;
}

.hcd .faq .regroupement h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--hcd-nuit);
    font-family: 'ralewayextrabold', sans-serif;
    font-size: 22px;
    margin: 36px 0 16px;
}

.hcd .faq .regroupement:first-child h3 {
    margin-top: 0;
}

.hcd .faq .regroupement h3 span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(0, 213, 195, 0.14);
    color: var(--hcd-turquoise-fonce);
    font-family: Arial, sans-serif;
    font-size: 18px;
}

.hcd .formulaire-container {
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Formulaire : l'icône d'aide « ? » était collée au libellé (style.css ne l'espace que pour P&G). */
.hcd .tooltip-conso {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-left: 8px;
    vertical-align: middle;
    background: var(--hcd-turquoise);
    color: var(--hcd-nuit); /* le « ? » blanc sur turquoise manquait de contraste */
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1;
}

.hcd .tooltip-conso:focus-visible {
    outline: 3px solid var(--hcd-nuit);
    outline-offset: 2px;
}

.hcd .formulaire-content .bigast {
    margin-left: 2px;
}

/* ---------- Pied de page ---------- */

.hcd .hcd-pied {
    background: var(--hcd-nuit);
    color: rgba(255, 255, 255, 0.7);
    margin-top: 40px;
}

.hcd .hcd-pied-interieur {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-top: 22px;
    padding-bottom: 22px;
    font-size: 13px;
}

.hcd .hcd-pied p {
    margin: 0;
}

.hcd .hcd-pied a {
    color: var(--hcd-blanc);
    text-decoration: none;
}

.hcd .hcd-pied a:hover {
    color: var(--hcd-turquoise);
}

/* ---------- Petits écrans ---------- */

@media (max-width: 900px) {
    .hcd .hcd-nav {
        flex-wrap: wrap;
        white-space: normal;
    }

    .hcd .hcd-cartes {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .hcd .hcd-heros {
        background: radial-gradient(circle at 80% 20%, var(--hcd-nuit-2), var(--hcd-nuit) 60%);
    }
}

@media (max-width: 600px) {
    .hcd p {
    margin: 0 0 5px;
}

.hcd .hcd-conteneur {
        padding: 0 16px;
    }

    .hcd .hcd-barre-interieur {
        justify-content: center;
    }

    .hcd .hcd-nav {
        justify-content: center;
        gap: 2px 16px;
    }

    .hcd .hcd-heros {
        padding: 36px 0 96px;
        text-align: center;
    }

    .hcd .hcd-carte {
        padding: 20px;
    }

    .hcd .hcd-pied-interieur {
        flex-direction: column;
        text-align: center;
    }
}

/* Mouvements au survol, seulement si l'utilisateur n'a pas demandé à réduire les animations. */
@media (prefers-reduced-motion: no-preference) {
    .hcd .hcd-bouton,
    .hcd .hcd-carte {
        transition-property: transform, background-color, color, box-shadow;
    }

    .hcd .hcd-bouton:hover {
        transform: translateY(-1px);
    }

    .hcd .hcd-bouton .hcd-fleche {
        transition: transform 0.15s;
    }

    .hcd .hcd-bouton:hover .hcd-fleche {
        transform: translateX(3px);
    }

    .hcd .hcd-carte:hover {
        transform: translateY(-3px);
    }
}
