/* ============================================
   BORN2FLY - Saut en Parachute SPA
   ============================================ */

/* === VARIABLES === */
:root {
    --primary: #0F4C81;
    --primary-dark: #0A3660;
    --secondary: #FF6B35;
    --secondary-dark: #E85D26;
    --accent: #1B98E0;
    --dark: #0A1628;
    --dark-lighter: #111D33;
    --light: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-600: #475569;
    --gray-800: #1E293B;
    --white: #FFFFFF;

    --font-heading: 'Bebas Neue', 'Arial Black', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
    --shadow-lg: 0 12px 48px rgba(10, 22, 40, 0.12);
    --shadow-card: 0 8px 32px rgba(10, 22, 40, 0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* === SKIP LINK === */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--secondary);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    z-index: 3000;
    font-weight: 600;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 16px;
}

/* === UTILITIES === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section__tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 12px;
}

.section__title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    letter-spacing: 2px;
    color: var(--dark);
    margin-bottom: 16px;
    text-align: center;
}

.section__title--left {
    text-align: left;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 560px;
    margin: 0 auto 60px;
    text-align: center;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.btn--primary:active {
    transform: translateY(0) scale(1);
}

.btn--lg {
    padding: 18px 40px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

/* === NAVIGATION === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition);
}

.nav--scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: var(--shadow);
}

.nav--scrolled .nav__logo,
.nav--scrolled .nav__link {
    color: var(--dark);
}

.nav__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav__logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--white);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition);
}

.nav__logo-icon {
    font-size: 1.4rem;
}

.nav__logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__link {
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav__link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.nav--scrolled .nav__link:hover {
    background: var(--gray-100);
}

.nav__link--cta {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white) !important;
    padding: 10px 24px;
}

.nav__link--cta:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)) !important;
}

/* Hamburger */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav--scrolled .nav__toggle span {
    background: var(--dark);
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(15, 76, 129, 0.75), rgba(10, 22, 40, 0.6)),
        image-set(
            url('../img/sortie-avion-1600w.webp') type('image/webp'),
            url('../img/sortie-avion-1600w.jpg') type('image/jpeg')
        );
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

@supports (-webkit-overflow-scrolling: touch) {
    .hero {
        background-attachment: scroll;
    }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(27, 152, 224, 0.2), transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(255, 107, 53, 0.1), transparent 50%);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 7rem);
    color: var(--white);
    letter-spacing: 4px;
    line-height: 1;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.hero__scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { top: -100%; }
    50% { top: 100%; }
    100% { top: 100%; }
}

/* === CARDS / OFFRES === */
.sauts {
    background: var(--light);
}

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card--featured {
    border: 2px solid var(--secondary);
}

.card--featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.card__icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.card__badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 20px;
}

.card__badge--accent {
    background: var(--secondary);
}

.card__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 2px;
    color: var(--dark);
    margin-bottom: 12px;
}

.card__desc {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.6;
}

.card__price {
    font-size: 1.1rem;
    color: var(--gray-800);
    margin-bottom: 24px;
}

.card__price strong {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    color: var(--secondary);
}

.sauts__cta-link {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: underline;
    transition: color var(--transition);
}

.sauts__cta-link:hover {
    color: var(--secondary-dark);
}

.card__ffp-link {
    display: inline-block;
    margin-top: 6px;
    color: var(--accent);
    text-decoration: underline;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color var(--transition);
}

.card__ffp-link:hover {
    color: var(--primary);
}

.card__features {
    text-align: left;
    margin-bottom: 28px;
    flex-grow: 1;
}

.card__features li {
    padding: 6px 0;
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* === ABOUT === */
.about {
    background: var(--white);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.about__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about__content p {
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about__stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.about__stat {
    text-align: center;
}

.about__stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--secondary);
    letter-spacing: 1px;
    line-height: 1;
}

.about__stat-label {
    font-size: 0.8rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    display: block;
}

/* === CONTACT / FORM === */
.contact {
    background: linear-gradient(180deg, var(--light), var(--white));
}

.form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.form__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.form__group--full {
    grid-column: 1 / -1;
}

.form__label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.form__input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-800);
    transition: all var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.form__input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(27, 152, 224, 0.1);
}

.form__input--error {
    border-color: #EF4444;
}

.form__input--error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form__select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__error {
    display: block;
    font-size: 0.8rem;
    color: #EF4444;
    margin-top: 4px;
    min-height: 20px;
}

.form__submit {
    width: 100%;
}

.form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Feedback */
.form__feedback {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    text-align: center;
}

.form__feedback--success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.form__feedback--error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* === TIPS / CONSEILS === */
.tips {
    background: var(--white);
}

.tips__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.tip {
    background: var(--light);
    border-radius: var(--radius);
    padding: 32px 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all var(--transition);
}

.tip:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.tip__icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tip__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 1px;
    color: var(--dark);
    margin-bottom: 8px;
}

.tip p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 0.92rem;
}

/* === MEDICAL === */
.medical {
    background: var(--light);
}

.medical__wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.medical__content > p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 32px;
}

.medical__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.medical__card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    border-left: 4px solid transparent;
}

.medical__card--ok {
    border-left-color: #10B981;
}

.medical__card--warn {
    border-left-color: #F59E0B;
}

.medical__card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--dark);
    margin-bottom: 16px;
}

.medical__card ul {
    list-style: none;
}

.medical__card li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.6;
}

.medical__card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gray-400);
    font-weight: bold;
}

.medical__cert-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.medical__cert-link:hover {
    color: var(--primary);
}

.medical__note {
    background: linear-gradient(135deg, rgba(27, 152, 224, 0.08), rgba(15, 76, 129, 0.06));
    border: 1px solid rgba(27, 152, 224, 0.15);
    border-radius: var(--radius);
    padding: 20px 24px;
    color: var(--gray-800);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* === GALLERY === */
.gallery {
    background: var(--dark);
    padding-bottom: 80px;
    overflow: hidden;
}

.gallery .section__tag,
.gallery .section__title,
.gallery .section__subtitle {
    color: var(--white);
}

.gallery .section__subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.gallery__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 40px 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary) var(--dark-lighter);
    cursor: grab;
}

.gallery__track:active {
    cursor: grabbing;
}

.gallery__track::-webkit-scrollbar {
    height: 6px;
}

.gallery__track::-webkit-scrollbar-track {
    background: var(--dark-lighter);
    border-radius: 3px;
}

.gallery__track::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 3px;
}

.gallery__slide {
    flex: 0 0 calc(100vw - 80px);
    scroll-snap-align: center;
    border-radius: var(--radius);
    overflow: hidden;
}

.gallery__slide img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.gallery__slide:hover img {
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .gallery__track {
        /* Aligner la première image avec le .container (max-width 1200px + 24px padding) */
        padding: 0 max(24px, calc((100vw - 1200px) / 2 + 24px)) 20px;
        scroll-padding-left: max(24px, calc((100vw - 1200px) / 2 + 24px));
    }

    .gallery__slide {
        flex: 0 0 400px;
        scroll-snap-align: start;
    }
}

/* === LIGHTBOX === */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox--open {
    opacity: 1;
    visibility: visible;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox--open .lightbox__img {
    transform: scale(1);
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.4rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition);
    z-index: 1;
}

.lightbox__close:hover {
    opacity: 1;
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 1.6rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox__counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.gallery__slide {
    cursor: pointer;
}

/* === VIDEO === */
.video {
    background: var(--light);
}

.video__wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    background: var(--dark);
}

.video__player {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--dark);
}

/* === MEDICAL CTA === */
.medical__cta {
    text-align: center;
    margin: 40px 0 32px;
}

.medical__cta-hint {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--gray-400);
}

/* === MODAL === */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal--open {
    opacity: 1;
    visibility: visible;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal__container {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(10, 22, 40, 0.25);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}

.modal--open .modal__container {
    transform: translateY(0) scale(1);
}

.modal__header {
    position: sticky;
    top: 0;
    background: var(--primary);
    color: var(--white);
    padding: 28px 32px 20px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 1;
}

.modal__title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.modal__desc {
    font-size: 0.8rem;
    opacity: 0.75;
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--white);
    font-size: 1.6rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.modal__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal__body {
    padding: 32px;
}

.modal__step-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 1px;
    color: var(--dark);
    margin-bottom: 20px;
}

.modal__step-intro {
    color: var(--gray-600);
    margin-bottom: 20px;
    font-size: 0.92rem;
}

.modal__form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.modal__imc {
    background: var(--gray-100);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.95rem;
    color: var(--gray-800);
    margin-bottom: 24px;
}

.modal__imc strong {
    font-size: 1.2rem;
    color: var(--primary);
}

/* Checkboxes questionnaire */
.modal__questions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
}

.modal__check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition);
    font-size: 0.92rem;
    color: var(--gray-800);
    line-height: 1.5;
}

.modal__check:hover {
    background: var(--gray-200);
}

.modal__check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--secondary);
    cursor: pointer;
}

.modal__check--checked {
    background: #FEF2F2;
    border: 1px solid #FECACA;
}

/* Navigation buttons */
.modal__nav-btns {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 24px;
}

.modal__prev {
    background: var(--gray-100);
    color: var(--gray-600);
}

.modal__prev:hover {
    background: var(--gray-200);
}

.modal__next {
    margin-left: auto;
}

/* Resultats */
.modal__result {
    text-align: center;
    padding: 20px 0;
}

.modal__result-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    display: block;
}

.modal__result-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.modal__result-text {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.modal__result--ok .modal__result-title { color: #059669; }
.modal__result--cert .modal__result-title { color: #D97706; }
.modal__result--contact .modal__result-title { color: #DC2626; }

.modal__result-list {
    text-align: left;
    margin: 16px auto;
    max-width: 400px;
    list-style: none;
}

.modal__result-list li {
    padding: 4px 0;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.modal__result-list li::before {
    content: '⚠ ';
}

@media (max-width: 500px) {
    .modal__form-grid {
        grid-template-columns: 1fr;
    }

    .modal__body {
        padding: 24px 16px;
    }

    .modal__header {
        padding: 24px 20px 16px;
    }
}

/* === FAQ === */
.faq {
    background: var(--white);
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid var(--gray-200);
    overflow: hidden;
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 8px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
    cursor: pointer;
    list-style: none;
    transition: color var(--transition);
    line-height: 1.5;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--secondary);
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform var(--transition);
}

.faq__item[open] .faq__question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq__item[open] .faq__question {
    color: var(--primary);
}

.faq__answer {
    padding: 0 8px 24px;
}

.faq__answer p {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* === FOOTER === */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__brand p {
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
}

.nav__logo--footer {
    color: var(--white);
}

.footer__links h3,
.footer__contact h3 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.footer__links a,
.footer__contact li {
    display: block;
    padding: 4px 0;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--secondary);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-size: 0.8rem;
}

.footer__bottom a {
    transition: color var(--transition);
}

.footer__bottom a:hover {
    color: var(--secondary);
}

/* === ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }

/* === LEGAL PAGES === */
.legal {
    padding: 120px 0 60px;
    min-height: calc(100vh - 200px);
}

.legal__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 2px;
    color: var(--dark);
    margin-bottom: 40px;
}

.legal__section {
    margin-bottom: 36px;
}

.legal__section h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 12px;
}

.legal__section p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 10px;
}

.legal__section ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 12px;
}

.legal__section li {
    color: var(--gray-600);
    line-height: 1.7;
    padding: 2px 0;
}

.legal__section a {
    color: var(--accent);
    text-decoration: underline;
}

.legal__section a:hover {
    color: var(--primary);
}

.legal__update {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-400);
    font-size: 0.85rem;
    font-style: italic;
}

/* === RESPONSIVE === */
@media (min-width: 640px) {
    .form__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__grid {
        grid-template-columns: 1fr 1fr;
    }

    .tips__grid {
        grid-template-columns: 1fr 1fr;
    }

    .medical__grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 767px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 32px 32px;
        gap: 12px;
        transition: right var(--transition);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    }

    .nav__menu--open {
        right: 0;
    }

    .nav__link,
    .nav--scrolled .nav__link {
        color: rgba(255, 255, 255, 0.9);
        width: 100%;
        padding: 12px 16px;
        font-size: 1.1rem;
    }

    .nav__menu li:last-child {
        margin-top: 16px;
    }

    .nav__toggle--active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav__toggle--active span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle--active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav__toggle--active span {
        background: var(--white) !important;
    }

    .section {
        padding: 70px 0;
    }

    .form {
        padding: 32px 20px;
    }

    .about__stats {
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .card {
        padding: 48px 36px;
    }
}
