/* ─── Police Open Sans (auto-hébergée, subset latin, variable 400–800) ──────── */
@font-face {
    font-family: 'Open Sans';
    src: url('/assets/fonts/open-sans-latin.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

/* ─── Tokens de design (palette designer) ───────────────────────────────────── */
:root {
    --lp-yellow:       #FFEE33;  /* fond hero */
    --lp-yellow-light: #FFFDEC;  /* fond sections claires */
    --lp-blue:         #012B5D;  /* bouton primary, footer, titres */
    --lp-pink:         #BC3566;  /* accent — erreurs, FAQ, focus */
    --lp-light-pink:   #E66D99;  /* erreurs formulaire */
    --lp-orange:       #F7B123;  /* accent secondaire */
    --lp-orange-dark:  #E65624;  /* accent secondaire sombre (focus, hover) */
    --lp-brown:        #581C07;  /* décoratif */
    --lp-text:         #0A0A0A;  /* texte principal */
    --lp-white:        #ffffff;
    --lp-muted:        #666677;
    --lp-border:       #d8d8e8;
    --lp-font:         'Open Sans', system-ui, -apple-system, sans-serif;
    --lp-radius:       8px;
    --lp-radius-pill:  100px;
    --lp-max-width:    1100px;
}

/* ─── Écrase le thème sombre de style.css sur la landing ────────────────────── */
html { scroll-behavior: smooth; }

body {
    background: var(--lp-white);
    color: var(--lp-text);
    font-family: var(--lp-font);
}

a { color: var(--lp-light-pink); }

/* ─── Boutons ────────────────────────────────────────────────────────────────── */
.lp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--lp-radius-pill);
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--lp-font);
    line-height: 144%;
    padding: 20px 24px;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
    border: 2px solid transparent;
    white-space: nowrap;
    width: fit-content;
}
.lp-btn:hover { text-decoration: none; }
.lp-btn__icon { width: 18px; height: 18px; flex-shrink: 0; }

/* Primary : bleu navy → noir au hover */
.lp-btn--primary {
    background: var(--lp-blue);
    color: var(--lp-white);
    border-color: var(--lp-blue);
}
.lp-btn--primary:hover {
    background: #000;
    border-color: #000;
}

/* Secondary : jaune → outline au hover */
.lp-btn--secondary {
    background: var(--lp-yellow);
    color: var(--lp-blue);
    border-color: var(--lp-yellow);
}
.lp-btn--secondary:hover {
    background: var(--lp-white);
    border-color: var(--lp-blue);
    color: var(--lp-blue);
}

/* Outline sombre (hero) */
.lp-btn--outline {
    background: transparent;
    color: var(--lp-blue);
    border-color: var(--lp-blue);
}
.lp-btn--outline:hover {
    background: var(--lp-blue);
    color: var(--lp-white);
}

/* Outline clair (footer) */
.lp-btn--outline-light {
    background: transparent;
    color: var(--lp-white);
    border-color: var(--lp-white);
}
.lp-btn--outline-light:hover {
    background: var(--lp-white);
    color: var(--lp-blue);
}

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.lp-hero {
    background: var(--lp-yellow);
    display: grid;
    grid-template-columns: 1fr auto auto;
    min-height: 480px;
    position: relative;
    padding-left: 40px;
}

.lp-hero__copyright {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    align-self: end;
    color: #000;
    font-size: clamp(0.625rem, 0.3vw + 0.55rem, 0.75rem);
    font-weight: 800;
    text-align: center;
    padding: 8px;
    margin: 0;
    white-space: nowrap;
}

.lp-hero__content {
    padding: 48px 56px 48px 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    z-index: 1;
    background: url('/assets/img/pattern.svg') right/contain no-repeat;
}

.lp-hero__logo img { height: 120px; width: auto; display: block; }

.lp-hero__subtitle {
    font-size: clamp(1.75rem, 2.5vw + 0.75rem, 3.75rem);
    font-weight: 800;
    color: var(--lp-text);
    line-height: 1.133;
}

.lp-hero__subtitle-highlight {
     color: var(--lp-text);
     /* -webkit-text-stroke: 5px #FFF; */
     text-shadow:
        -5px -5px 0 var(--lp-white),
        5px -5px 0 var(--lp-white),
        -5px 5px 0 var(--lp-white),
        5px 5px 0 var(--lp-white);
}

.lp-hero__subtitle strong { color: var(--lp-pink); }

.lp-hero__desc {
    font-size: clamp(1rem, 1.25vw + 0.5rem, 1.875rem);
    font-weight: 700;
    color: var(--lp-text);
    line-height: 1.2;
}

.lp-tab {
    display: flex;
    padding: 12px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    background: #fff;
    font-size: clamp(0.875rem, 0.75vw + 0.625rem, 1.125rem);
    font-family: var(--lp-font);
    font-weight: 700;
    color: var(--lp-text);
}

.lp-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lp-hero__cta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-hero__visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-height: 420px;
    top: 0;
    position: sticky;
}
.lp-hero__visual img {
    display: block;
    width: auto;
}

/* ─── Section formulaire ─────────────────────────────────────────────────────── */
.lp-form-section {
    background: var(--lp-yellow-light);
    padding: 64px 24px;
    position: relative;
    overflow: clip;
}
.lp-form-section__decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.lp-form-section__decor__img {
    width: 100%;
    top: 400px;
    position: relative;
}
.lp-form-section__title,
.lp-form-section__inner { position: relative; z-index: 1; }

.lp-form-section__inner {
    max-width: 1016px;
    margin: 0 auto;
    display: flex;
    place-items: end;
}

.lp-form-section__title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--lp-brown);
    margin-bottom: 32px;
    text-align: center;
}

/* ── Adaptation thème sombre (card bleue sur fond crème) ── */
.lp-form-section .form-card {
    background: var(--lp-blue);
    border: 12px solid var(--lp-orange);
    border-radius: 16px;
    box-shadow: none;
}

.lp-form-section .section-title {
    color: rgba(255,255,255,.6);
    border-color: rgba(255,255,255,.15);
}

.lp-form-section .form-group label { color: var(--lp-white); }
.lp-form-section .form-group label .req { color: var(--lp-orange); }
.lp-form-section .form-group label .form-group-example { font-size: 0.875rem; font-weight: 400; }

.lp-form-section .form-group p { color: var(--lp-white); font-size: 1rem; margin-top: 4px; }

.lp-form-section .form-group input,
.lp-form-section .form-group select,
.lp-form-section .form-group textarea {
    background: var(--lp-white);
    border-color: var(--lp-border);
    color: var(--lp-text);
}
.lp-form-section .form-group input::placeholder,
.lp-form-section .form-group textarea::placeholder { color: #aaaabc; }

.lp-form-section .form-group input:focus,
.lp-form-section .form-group select:focus,
.lp-form-section .form-group textarea:focus {
    outline: none;
    border-color: var(--lp-orange);
    box-shadow: 0 0 0 3px rgba(247,177,35,.25);
}

.lp-form-section .form-group input.is-invalid,
.lp-form-section .form-group select.is-invalid { border-color: var(--lp-light-pink); }

.lp-form-section .field-error { color: var(--lp-light-pink); }
.lp-form-section .form-group select option { background: var(--lp-white); color: var(--lp-text); }

.lp-form-section .upload-zone {
    border-color: var(--lp-border);
    background: var(--lp-white);
}
.lp-form-section .upload-zone:hover,
.lp-form-section .upload-zone.dragover {
    border-color: var(--lp-orange);
    background: var(--lp-yellow-light);
}
.lp-form-section .upload-icon {
    display: flex;
    width: 20px;
    height: 20px;
    padding: 10px;
    justify-content: center;
    align-items: center;
    border-radius: 28px;
    border: 6px solid #FFEE33;
    background: #FFEE33;
    margin: 0 auto 12px;
    box-sizing: content-box;
}
.lp-form-section .upload-label {
    font-weight: 700;
    line-height: 130%;
    font-size: 1.125rem;
    color: #161F2C;
}


.lp-form-section .upload-label strong { color: var(--lp-pink); }

/* Image déco baguettes (desktop uniquement) */
.lp-form-section__visual {
    position: sticky;
    transform: translateX(-32px);
    top: 0;
    align-self: start;
    max-width: 250px;
    z-index: 2;
    pointer-events: none;
    max-height: 100dvh;
}

/* Bouton submit formulaire → secondary (jaune) */
.lp-form-section .btn-primary {
    background: var(--lp-yellow);
    color: var(--lp-blue);
    border: 2px solid var(--lp-yellow);
    border-radius: var(--lp-radius-pill);
    font-weight: 700;
    width: fit-content;
}
.lp-form-section .btn-primary:hover {
    background: var(--lp-white);
    border-color: var(--lp-blue);
    color: var(--lp-blue);
    transform: none;
}

.lp-form-section .checkbox-wrap label { color: rgba(255,255,255,.8); }
.lp-form-section .checkbox-wrap input[type="checkbox"] { accent-color: var(--lp-orange); }

.lp-form-section .alert-error {
    background: rgba(188,53,102,.08);
    border-color: rgba(188,53,102,.3);
    color: var(--lp-pink);
}

.lp-form-section .alert-closed {
    background: var(--lp-yellow-light);
    border-color: var(--lp-border);
    color: var(--lp-text);
}
.lp-form-section .alert-closed p { color: var(--lp-muted); }
.lp-form-section .alert-closed h2 { color: var(--lp-text); }

.lp-form-section .rgpd-block {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.15);
}
.lp-form-section .rgpd-block p { color: var(--lp-white); }
.lp-form-section .form-intro { color: var(--lp-white); margin-bottom: 32px; }
.lp-form-section .rgpd-block strong { color: var(--lp-white); }

/* ─── FAQ ────────────────────────────────────────────────────────────────────── */
.lp-faq {
    padding: 80px 160px;
    display: flex;
    gap: 48px;
    justify-content: center;
    background: url(/assets/img/pattern.svg) right / contain no-repeat;
    background-attachment: fixed;
}

.lp-faq__inner {
    max-width: 1024px;
    background: #fff;
    width: 100%;
}

.faq-link{
    color: var(--lp-pink);
    text-decoration: underline;
}

.lp-faq__decor {
    width: 100%;
    max-width: 510px;
    align-self: start;
    position: sticky;
    top: 0;
}


.lp-faq__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--lp-text);
    margin-bottom: 32px;
    text-align: center;
}

.lp-faq__item {
    border-bottom: 1px solid #E8D5B0;
}

.lp-faq__item:last-child {
    border-bottom: none;
}

.lp-faq__item summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 20px 72px 20px 20px;
    list-style: none;
    position: relative;
    color: var(--lp-brown);
    transition: background-color .15s;
    user-select: none;
    border-radius: 24px;
}
.lp-faq__item summary::-webkit-details-marker { display: none; }

.lp-faq__item summary::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--lp-orange-dark) url('/assets/img/ChevronDown.svg') center/20px no-repeat;
    border-radius: 50%;
    flex-shrink: 0;
}

.lp-faq__item[open] {
    margin-top: 16px;
}

.lp-faq__item[open] summary {
    color: var(--lp-brown);
    background-color: #FFE9C0;
}

.lp-faq__item[open] summary::after {
    background-image: url('/assets/img/ChevronUp.svg');
}

.lp-faq__answer {
    padding: 20px;
    font-size: 14px;
    color: var(--lp-muted);
    line-height: 1.65;
    overflow: hidden;
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.lp-footer {
    background: var(--lp-blue);
    color: var(--lp-yellow-light);
    padding: 80px 160px 80px 160px;
}

.lp-footer__inner {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding-bottom: 24px;
}

.lp-footer__brand img { height: 160px; width: auto; }

.lp-footer__social p,
.lp-footer__contact p {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 24px;
}

.lp-footer__social__icons { display: flex; gap: 24px; }
.lp-footer__social__icons a {
    color: var(--lp-yellow-light);
    font-size: 18px;
    transition: opacity .15s;
}
.lp-footer__social__icons a:hover { opacity: .7; text-decoration: none; }

.lp-footer__legal {
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,.24);
    border-top: 1px solid rgba(255,255,255,.24);
    padding-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: auto;
    padding: 40px 0 40px 0;
}

.lp-footer__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.lp-footer__list a {
    color: var(--lp-yellow-light);
    font-size: 14px;
    text-decoration: underline;
}

.lp-form-section__visual__mobile { display: none; }


/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1440px) {
    .lp-footer { padding: 40px 40px 40px 40px; }
    .lp-faq { padding: 40px 40px 40px 40px; }
    .lp-hero { padding-left: 40px; }
    .lp-hero__visual img { max-width: 655px; }
}

@media (max-width:  1024px) {
    .lp-hero__content { padding: 40px 24px 40px 0px; }
    .lp-hero__visual img { max-width: 100%; height: auto; }
    .lp-faq__title {font-size: 2rem;}
    .lp-faq__item summary {font-size: 1rem;}
}

@media (max-width: 768px) {
    .lp-hero { grid-template-columns: 1fr; padding-left:0;}
    .lp-hero__copyright { writing-mode: horizontal-tb; transform: none; padding: 8px 20px; }
    .lp-hero__cta { justify-content: center; gap: 48px; }
    .lp-hero__cta-group {align-items: center; }
    .lp-hero__visual { width: 100%; height: auto; }
    .lp-hero__content { padding: 32px 20px; max-width: 100%; text-align: center; }
    .lp-form-section__inner { flex-direction: column; text-align: center; gap: 32px; }
    .lp-form-section__header { display: flex; flex-direction: row; align-items: center; gap: 20px; }
    .lp-form-section__title { font-size: 24px; }
    .lp-form-section__visual__mobile { display: block; margin: 0 auto; width: 75px; height: auto; }
    .lp-footer__inner { grid-template-columns: 1fr; text-align: center; gap: 24px; }
    .lp-footer__social__icons { justify-content: center; }
    .lp-footer { padding: 40px 16px 40px 16px; line-height: 122%; }
    .lp-form-section__header { margin-bottom: 32px;}
    .lp-form-section__decor { display: none;}
    .lp-form-section__visual { display: none; }
    .lp-hero__logo { justify-content: center; display: flex;}
    .lp-faq { padding: 40px 16px 40px 16px; flex-direction: column; }
    .lp-faq__inner { order: -1; }
    .lp-faq__decor { max-width: 100%; }
}

@media (max-width: 480px) {
    .lp-hero__cta { flex-direction: column; }
    .lp-btn { justify-content: center; }
}

@media (max-width: 390px) {
    .lp-hero__visual { min-height: unset; }
    .lp-hero__visual img { width: 100%; height: auto; }
}
