/* =============================================
   ITC Entreprises - Corporate Design System
   Cession & Acquisition — Polynésie Française
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
    --noir: #0B1121;
    --noir-soft: #141E33;
    --charcoal: #1E2D45;
    --graphite: #2C3E56;
    --steel: #495B6D;
    --silver: #8A9BB0;
    --pearl: #B5C1CC;
    --mist: #DDE3E9;
    --ice: #F0F4F8;
    --white: #FFFFFF;
    --accent: #3B82F6;
    --accent-light: #60A5FA;
    --accent-dark: #2563EB;
    --blue-deep: #1E40AF;
    --error: #DC2626;
    --success: #059669;

    --font-heading: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --header-height: 80px;
    --container-max: 1200px;
    --container-narrow: 800px;
    --radius: 4px;
    --radius-lg: 8px;
    --shadow-subtle: 0 2px 20px rgba(0,0,0,0.06);
    --shadow-elevated: 0 8px 40px rgba(0,0,0,0.1);
    --transition: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--steel);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-light);
}

.hidden {
    display: none !important;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--noir);
    line-height: 1.2;
    font-weight: 400;
}

h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
}

p {
    margin-bottom: 1.2rem;
    color: var(--steel);
    font-weight: 300;
    letter-spacing: 0.01em;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    color: var(--charcoal);
    font-weight: 500;
}

.text-accent {
    color: var(--accent);
}

/* Label style - Corporate uppercase */
.label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 60px);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: clamp(80px, 14vw, 160px) 0;
    position: relative;
}

.section--white {
    background: var(--white);
}

.section--ice {
    background: var(--ice);
}

.section--dark {
    background: var(--noir-soft);
}

.section--dark h2,
.section--dark h3 {
    color: var(--white);
}

.section--dark p {
    color: var(--silver);
}

.section--dark .label {
    color: var(--accent-light);
}

/* Blue transition line between sections */
.section--has-line::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-header .label {
    display: block;
    margin-bottom: 1.2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 0;
    position: relative;
}

.section-divider {
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 1.5rem auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--silver);
    font-size: 1.05rem;
    font-weight: 300;
    max-width: 600px;
    margin: 1.5rem auto 0;
    letter-spacing: 0.02em;
}

.section-cta {
    text-align: center;
    margin-top: clamp(3rem, 5vw, 4rem);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 16px 48px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    border-radius: var(--radius);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
}

.btn-dark {
    background: var(--noir);
    color: var(--white);
    border: 1px solid var(--noir);
}

.btn-dark:hover {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: var(--white);
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    border-bottom-color: var(--mist);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 60px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--noir);
    letter-spacing: 0.02em;
    transition: color var(--transition);
}

.logo-text strong {
    font-weight: 700;
    color: var(--accent);
}

.header-logo:hover .logo-text {
    color: var(--charcoal);
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(1.2rem, 2vw, 2.5rem);
}

.nav-link {
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--steel);
    transition: color var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--noir);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link--cta {
    background: transparent;
    color: var(--accent) !important;
    padding: 10px 28px;
    border: 1px solid var(--accent);
    letter-spacing: 0.15em;
    border-radius: var(--radius);
}

.nav-link--cta:hover {
    background: var(--accent);
    color: var(--white) !important;
}

.nav-link--cta::after {
    display: none;
}

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

.hamburger-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--noir);
    transition: all var(--transition);
}

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

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

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

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--header-height) 24px 0;
    /* fond de secours si WebGL indisponible : même océan, figé */
    background: linear-gradient(180deg, #0D1526 0%, var(--noir) 55%, #0A0F1D 100%);
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 42%, rgba(59, 130, 246, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 85%, rgba(30, 64, 175, 0.12) 0%, transparent 50%);
    opacity: 1;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(11, 17, 33, 0.35) 0%,
        rgba(11, 17, 33, 0) 35%,
        rgba(11, 17, 33, 0.55) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--accent-light);
    margin-bottom: 2rem;
}

.hero-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
    text-wrap: balance;
}

.hero-title em {
    font-style: italic;
    color: var(--accent-light);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    color: var(--pearl);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    line-height: 1.85;
}

.hero .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.45);
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Cards Grid ---------- */
.cards-grid {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.cards-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.cards-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

/* ---------- Étapes (Notre approche) ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    max-width: 1080px;
    margin: 0 auto;
}

.step {
    text-align: left;
    padding-top: 2rem;
    border-top: 2px solid var(--mist);
    transition: border-color 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.step:hover {
    border-top-color: var(--accent);
}

.step .card-number {
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.step .card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step .card-text {
    font-size: 0.95rem;
}

/* ---------- Difference Cards ---------- */
.card--difference {
    text-align: center;
    padding: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
    background: transparent;
    border: 1px solid var(--mist);
    transition: all var(--transition-slow);
    border-radius: var(--radius-lg);
}

.card--difference:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
}

.card-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    color: var(--mist);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.card--difference:hover .card-number {
    color: var(--accent-light);
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.card-text {
    font-size: 0.92rem;
    line-height: 1.8;
    font-weight: 300;
}

/* ---------- À propos / Cabinet ---------- */
.apropos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
    margin-bottom: clamp(4rem, 8vw, 8rem);
}

.apropos-content .label {
    display: block;
    margin-bottom: 1.2rem;
}

.apropos-content h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.apropos-content p {
    font-size: 1rem;
}

.apropos-image {
    display: flex;
    justify-content: center;
}

/* Carte nautique stylisée Tahiti & Moorea */
.carte-fenua {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 56 / 46;
    background: linear-gradient(160deg, #0D1526 0%, var(--noir) 60%, #0A0F1D 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(11, 17, 33, 0.28);
}

.carte-fenua svg {
    width: 100%;
    height: 100%;
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .carte-fenua svg animate {
        display: none;
    }
}

/* Placeholder for missing illustration */
.apropos-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--noir) 0%, var(--charcoal) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.apropos-placeholder-icon {
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.6;
}

.apropos-placeholder-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--pearl);
    letter-spacing: 0.05em;
}

.apropos-histoire {
    max-width: var(--container-narrow);
    margin: 0 auto;
    text-align: center;
}

.subsection-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
}

.histoire-divider {
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 1.5rem auto 2rem;
}

.apropos-histoire p {
    text-align: center;
    font-size: 1rem;
}

/* ---------- Team Cards ---------- */
.card--team {
    text-align: center;
    padding: 0;
    background: transparent;
    transition: all var(--transition-slow);
}

.team-photo {
    width: 100%;
    aspect-ratio: 3/4;
    margin: 0 auto 2rem;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: all var(--transition-slow);
}

.card--team:hover .team-photo img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

/* Photo placeholder for missing team member photo */
.team-photo--placeholder {
    background: linear-gradient(135deg, var(--noir) 0%, var(--charcoal) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo-initials {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    color: var(--accent-light);
    opacity: 0.7;
    letter-spacing: 0.1em;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--noir);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.team-role {
    font-size: 0.85rem;
    color: var(--steel);
    margin-bottom: 1.2rem;
    font-style: normal;
    font-weight: 300;
}

.team-credentials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.team-credentials span {
    font-size: 0.72rem;
    color: var(--silver);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.team-credentials span + span::before {
    content: '\00B7';
    margin-right: 0.5rem;
}

/* ---------- Expertise Editorial Layout ---------- */
.expertise-list {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.expertise-item {
    padding: clamp(2.2rem, 4vw, 3rem) 0;
    border-bottom: 1px solid var(--mist);
}

.expertise-item:last-child {
    border-bottom: none;
}

.expertise-item .expertise-title {
    transition: color 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.expertise-item:hover .expertise-title {
    color: var(--accent-dark);
}

.expertise-body .label {
    display: block;
    margin-bottom: 0.8rem;
}

.expertise-title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 400;
    margin-bottom: 1rem;
}

.expertise-text {
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--steel);
}

/* ---------- Solution Cards (Text - Dark Section) ---------- */
.card--solution-text {
    padding: clamp(2rem, 4vw, 3rem);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-slow);
    border-radius: var(--radius-lg);
}

.card--solution-text:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.07);
}

.card--solution-text .label {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.68rem;
    color: var(--accent-light);
}

.card--solution-text .card-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.card--solution-text .card-text {
    font-size: 0.9rem;
    color: var(--silver);
}

.card--solution-text .card-text a {
    color: var(--accent-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.card--solution-text .card-text a:hover {
    color: var(--white);
}

/* Carte renvoi financement : visuellement distincte (partenaires du groupe) */
.card--solution-referral {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(96, 165, 250, 0.35);
}

.card--solution-referral:hover {
    background: rgba(59, 130, 246, 0.12);
}

/* ---------- FAQ ---------- */
.faq-list {
    border-top: 1px solid var(--mist);
}

.faq-item {
    border-bottom: 1px solid var(--mist);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.6rem 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.4;
    color: var(--noir);
    transition: color var(--transition);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    color: var(--accent-dark);
}

.faq-icon {
    position: relative;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--accent);
    transition: transform var(--transition);
}

.faq-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1.5px;
    margin-top: -0.75px;
}

.faq-icon::after {
    left: 50%;
    top: 0;
    height: 100%;
    width: 1.5px;
    margin-left: -0.75px;
}

.faq-item[open] .faq-icon::after {
    transform: scaleY(0);
}

.faq-answer {
    padding: 0 2.5rem 1.8rem 0;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.85;
}

.faq-answer a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 480px) {
    .faq-answer {
        padding-right: 0;
    }
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--steel);
}

.form-group input,
.form-group textarea,
.form-group select {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid var(--mist);
    background: transparent;
    color: var(--noir);
    transition: border-color var(--transition);
    outline: none;
    border-radius: 0;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    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='%235B6E82' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 24px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-bottom-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--pearl);
    font-weight: 300;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    border: none;
    border-bottom: 1px solid var(--mist);
}

.form-group .consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--steel);
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
}

.consent-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--accent);
}

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

.btn-submit {
    align-self: flex-start;
    margin-top: 1rem;
}

.form-feedback {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 300;
}

.form-note {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--steel);
    margin-top: 0.8rem;
}

.form-note a {
    text-decoration: underline;
}

.form-feedback.success {
    color: var(--success);
}

.form-feedback.error {
    color: var(--error);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: clamp(2rem, 4vw, 3rem);
    background: var(--ice);
    border-radius: var(--radius-lg);
}

.contact-info-block h3 {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.contact-info-block p {
    font-size: 0.92rem;
    color: var(--graphite);
    line-height: 1.9;
    font-weight: 300;
}

.contact-info-block a {
    color: var(--graphite);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}

.contact-info-block a:hover {
    border-bottom-color: var(--accent);
    color: var(--noir);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--noir);
    color: var(--silver);
    padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--pearl);
    display: block;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.footer-logo-text strong {
    font-weight: 700;
    color: var(--accent-light);
}

.footer-legal {
    font-size: 0.78rem;
    color: var(--steel);
    line-height: 2;
    font-weight: 300;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    font-size: 0.78rem;
    color: var(--silver);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-contact p {
    font-size: 0.88rem;
    color: var(--silver);
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.footer-contact a {
    color: var(--silver);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    font-size: 0.72rem;
    color: var(--steel);
    letter-spacing: 0.05em;
}

.footer-mentions {
    color: var(--steel);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.68rem;
}

.footer-mentions:hover {
    color: var(--accent-light);
}

/* ---------- Legal Page ---------- */
.legal-page {
    padding-top: calc(var(--header-height) + clamp(2rem, 5vw, 4rem));
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--noir);
    margin-top: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    color: var(--charcoal);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.legal-content p {
    color: var(--steel);
    line-height: 1.9;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.legal-content a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

.legal-content a:hover {
    color: var(--accent-dark);
}

.legal-content strong {
    color: var(--charcoal);
    font-weight: 500;
}

.legal-content ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}

.legal-content ul li {
    position: relative;
    color: var(--steel);
    font-size: 0.92rem;
    line-height: 1.9;
    padding-left: 0.8rem;
}

.legal-content ul li::before {
    content: '\2014';
    position: absolute;
    left: -1rem;
    color: var(--accent);
}

.legal-back {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--mist);
    text-align: center;
}

/* ---------- Auth Gate ---------- */

/* ---------- Intro Reveal ---------- */
.intro {
    position: fixed;
    inset: 0;
    background: var(--noir);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(12px);
    animation: introLogoIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.intro-name {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-light);
    letter-spacing: 0.15em;
    line-height: 1;
}

.intro-sub {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--pearl);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.intro-line {
    width: 0;
    height: 2px;
    background: var(--accent);
    margin-top: 1.5rem;
    animation: introLineGrow 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

@keyframes introLogoIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes introLineGrow {
    to { width: 50px; }
}

.intro.intro--out {
    animation: introSlideUp 0.9s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes introSlideUp {
    to { transform: translateY(-100%); }
}

/* Hero stagger reveal */
[data-hero] {
    opacity: 0;
    transform: translateY(25px);
}

body.revealed [data-hero] {
    animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.revealed [data-hero="1"] { animation-delay: 0s; }
body.revealed [data-hero="2"] { animation-delay: 0.15s; }
body.revealed [data-hero="3"] { animation-delay: 0.3s; }
body.revealed [data-hero="4"] { animation-delay: 0.45s; }

@keyframes heroReveal {
    to { opacity: 1; transform: translateY(0); }
}

body.no-intro [data-hero] {
    opacity: 1;
    transform: none;
    animation: none;
}

/* ---------- Animations ----------
   Les reveals ne s'activent que si JS est là (html.js) : sans JS ou dans un
   renderer headless, tout le contenu reste visible par défaut. */
html.js [data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

html.js [data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children animation */
.cards-grid [data-animate]:nth-child(2),
.steps-grid [data-animate]:nth-child(2),
.expertise-item:nth-child(2) {
    transition-delay: 0.15s;
}

.cards-grid [data-animate]:nth-child(3),
.steps-grid [data-animate]:nth-child(3),
.expertise-item:nth-child(3) {
    transition-delay: 0.3s;
}

.cards-grid [data-animate]:nth-child(4),
.expertise-item:nth-child(4) {
    transition-delay: 0.45s;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html.js [data-animate],
    [data-hero] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    .intro {
        display: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ---------- Focus visible (clavier) ---------- */
.btn:focus-visible,
.nav-link:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
    outline: none;
}

/* ---------- Responsive ---------- */
/* Largeurs intermédiaires : la nav complète doit tenir sans déborder */
@media (min-width: 769px) and (max-width: 1120px) {
    .header-inner {
        padding: 0 20px;
    }

    .header-logo {
        margin-right: 1.2rem;
    }

    .logo-text {
        font-size: 1.05rem;
    }

    .nav {
        gap: 0.9rem;
    }

    .nav-link {
        font-size: 0.64rem;
        letter-spacing: 0.1em;
    }

    .nav-link--cta {
        padding: 8px 14px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: calc(var(--header-height) + 30px) 40px 40px;
        gap: 0;
        box-shadow: -10px 0 40px rgba(0,0,0,0.08);
        transition: right var(--transition);
    }

    .nav.open {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 16px 0;
        font-size: 0.8rem;
        border-bottom: 1px solid var(--mist);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link--cta {
        margin-top: 1.5rem;
        text-align: center;
        padding: 14px 28px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cards-grid--3,
    .cards-grid--2 {
        grid-template-columns: 1fr;
    }

    .expertise-item {
        grid-template-columns: 60px 1fr;
        gap: 1.5rem;
    }

    .expertise-number {
        font-size: 2.5rem;
    }

    .apropos-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .apropos-image {
        order: -1;
    }

    .apropos-placeholder {
        max-width: 280px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .hero {
        min-height: 90vh;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 85vh;
        padding-top: calc(var(--header-height) + 20px);
    }

    .section {
        padding: clamp(60px, 10vw, 80px) 0;
    }

    .card--difference {
        padding: 2rem 1.5rem;
    }

    .expertise-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .expertise-number {
        font-size: 2rem;
    }

    .team-photo {
        aspect-ratio: 4/5;
    }

    .btn {
        padding: 14px 36px;
        font-size: 0.75rem;
    }

    .btn-submit {
        width: 100%;
    }
}
