/* =====================================================================
   Vallemont — page Aéronef détail (VM 1.1 et VM 1.2 partagent ce CSS)
   Chargé conditionnellement via wp_enqueue_scripts pour vm-1-1
   et vm-1-2.
   ===================================================================== */

/* ---------- HERO ---------- */
.aed-hero {
    position: relative; min-height: 100vh;
    background: var(--vm-black); color: var(--vm-bone); overflow: hidden;
}
.aed-hero .bg-photo,
.aed-hero .bg-packshot { position: absolute; }
.aed-hero .bg-photo {
    inset: 0; width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.4) contrast(1.1) saturate(0.8);
}
.aed-hero .bg-packshot {
    right: -6%; top: 44%; transform: translateY(-50%);
    height: 102%; width: auto; object-fit: contain;
    filter: drop-shadow(0 50px 100px rgba(0,0,0,0.7));
}
.aed-hero .scrim {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.55) 45%, rgba(10,10,10,0.1) 100%);
}
.aed-hero .corner {
    position: absolute; top: 110px;
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--vm-platinum);
}
.aed-hero .corner.left  { left: 64px; }
.aed-hero .corner.right { right: 64px; }
.aed-hero .center {
    position: absolute; left: 96px; right: 96px; bottom: 96px; max-width: 1100px;
}
.aed-hero .eyebrow {
    font-family: var(--font-display); font-size: 12px; font-weight: 500;
    letter-spacing: 0.36em; text-transform: uppercase;
    color: var(--vm-platinum); margin-bottom: 28px;
}
.aed-hero h1 {
    font-family: var(--font-display); font-size: 156px; font-weight: 500;
    line-height: 0.86; letter-spacing: 0; text-transform: uppercase; margin: 0;
}
.aed-hero h1 em {
    font-family: var(--font-serif); font-style: italic; font-weight: 300;
    text-transform: none; letter-spacing: -0.01em; color: var(--vm-platinum);
}
.aed-hero .lead { margin-top: 40px; }
.aed-hero .lead .text {
    font-family: var(--font-serif); font-style: italic; font-weight: 300;
    font-size: 24px; color: var(--vm-bone); max-width: 540px; line-height: 1.4;
}

/* ---------- BREADCRUMB ---------- */
.aed-breadcrumb {
    background: var(--vm-black); color: var(--vm-bone);
    padding: 32px 96px; border-bottom: 1px solid rgba(255,255,255,0.14);
}
.aed-breadcrumb .inner { display: flex; align-items: center; justify-content: space-between; }
.aed-breadcrumb .crumbs {
    display: flex; align-items: center; gap: 18px;
    font-family: var(--font-display); font-size: 11px; font-weight: 500;
    letter-spacing: 0.28em; text-transform: uppercase;
}
.aed-breadcrumb .crumbs a { color: var(--vm-steel); }
.aed-breadcrumb .crumbs a.is-active { color: var(--vm-bone); }
.aed-breadcrumb .crumbs .sep { color: var(--vm-graphite); }
.aed-breadcrumb .jump { display: flex; align-items: center; gap: 24px; }
.aed-breadcrumb .jump .label {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--vm-steel);
}
.aed-breadcrumb .jump a {
    font-family: var(--font-display); font-size: 11px; font-weight: 500;
    letter-spacing: 0.24em; text-transform: uppercase; color: var(--vm-bone);
    padding: 6px 14px; border: 1px solid rgba(255,255,255,0.28);
    transition: background var(--dur-base), color var(--dur-base);
}
.aed-breadcrumb .jump a:hover { background: var(--vm-bone); color: var(--vm-black); border-color: var(--vm-bone); }

/* ---------- VISION ---------- */
.aed-vision {
    background: var(--vm-black); color: var(--vm-bone);
    padding: 160px 96px; border-top: 1px solid rgba(255,255,255,0.18);
}
.aed-vision .inner {
    max-width: 1480px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 96px;
    align-items: flex-start;
}
.aed-vision .section-tag {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--vm-steel); margin-bottom: 24px;
}
.aed-vision h2 {
    font-family: var(--font-display); font-size: 96px; font-weight: 500;
    line-height: 0.94; letter-spacing: 0; text-transform: uppercase; margin: 0;
}
.aed-vision .lead {
    font-family: var(--font-serif); font-style: italic; font-weight: 300;
    font-size: 30px; line-height: 1.4; color: var(--vm-bone);
    margin: 0 0 36px; max-width: 720px;
}
.aed-vision .lead sup { font-size: 0.55em; vertical-align: super; }
.aed-vision .body {
    font-family: var(--font-serif); font-weight: 400; font-size: 18px;
    line-height: 1.65; color: var(--vm-platinum);
    margin: 0 0 18px; max-width: 680px;
}
.aed-vision .body:last-child { margin-bottom: 0; }

/* ---------- SPECS (light surface) ---------- */
.aed-specs {
    background: var(--vm-black); color: var(--vm-bone);
    padding: 144px 96px;
}
.aed-specs .inner { max-width: 1480px; margin: 0 auto; }
.aed-specs .head {
    display: flex; justify-content: space-between; align-items: flex-end;
    border-bottom: 1px solid rgba(255,255,255,0.18); padding-bottom: 36px;
}
.aed-specs .section-tag {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--vm-steel); margin-bottom: 16px;
}
.aed-specs h2 {
    font-family: var(--font-display); font-size: 84px; font-weight: 500;
    line-height: 0.96; letter-spacing: 0; text-transform: uppercase; margin: 0;
}
.aed-specs .hint {
    font-family: var(--font-serif); font-style: italic; font-weight: 300;
    font-size: 22px; color: var(--vm-platinum);
    max-width: 380px; line-height: 1.4;
}
.aed-specs .row {
    display: grid; grid-template-columns: 80px 280px 320px 1fr; gap: 32px;
    padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,0.18);
    align-items: baseline;
}
.aed-specs .row .n {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.08em; color: var(--vm-steel);
}
.aed-specs .row .k {
    font-family: var(--font-display); font-size: 14px; font-weight: 500;
    letter-spacing: 0.16em; text-transform: uppercase;
}
.aed-specs .row .v {
    font-family: var(--font-display); font-size: 26px; font-weight: 500;
    letter-spacing: 0;
}
.aed-specs .row .body {
    font-family: var(--font-serif); font-size: 16px;
    color: var(--vm-platinum); line-height: 1.5;
}
.aed-specs .aed-origin { display: flex; justify-content: center; margin-top: 72px; }
.aed-specs .aed-origin .tricolore { gap: 28px; }
.aed-specs .aed-origin .text {
    font-family: var(--font-serif); font-style: italic; font-weight: 300;
    font-size: 23px; line-height: 1.4; color: var(--vm-platinum);
}

/* ---------- GALLERY ---------- */
.aed-gallery {
    background: var(--vm-black); color: var(--vm-bone);
    padding: 144px 64px;
}
.aed-gallery .head {
    display: flex; justify-content: space-between; align-items: flex-end;
    border-bottom: 1px solid rgba(255,255,255,0.18);
    padding-bottom: 36px; margin: 0 auto 64px;
    max-width: 1480px;
}
.aed-gallery .section-tag {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--vm-steel); margin-bottom: 16px;
}
.aed-gallery h2 {
    font-family: var(--font-display); font-size: 84px; font-weight: 500;
    line-height: 0.96; letter-spacing: 0; text-transform: uppercase; margin: 0;
}
.aed-gallery .hint {
    font-family: var(--font-serif); font-style: italic; font-weight: 300;
    font-size: 20px; color: var(--vm-platinum);
    max-width: 360px; line-height: 1.4;
}
/* Simple 2-column grid, 3 rows. All figures share the same 4:5 aspect ratio
   so the gallery reads as a clean 2×3 matrix. Source images are pre-cropped
   to 1000×1250 (cf. /assets/photography/) — no scaling tricks needed. */
.aed-gallery .grid {
    max-width: 1480px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.aed-gallery figure {
    margin: 0; position: relative; overflow: hidden;
    aspect-ratio: 4/5;
}
.aed-gallery figure img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
/* Galerie de rendus produit (VM 1.1) : tuiles paysage, rendus détourés centrés sur fond noir. */
.aed-gallery--wide figure { aspect-ratio: 16/9; }
.aed-gallery--wide figure img { object-fit: contain; }
.aed-gallery figcaption {
    position: absolute; left: 20px; bottom: 16px;
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--vm-bone); background: rgba(0,0,0,0.4);
    padding: 4px 10px;
}
.aed-gallery__legal {
    max-width: 1480px; margin: 18px auto 0;
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--vm-platinum); text-align: right;
}

/* ---------- MECANISME ---------- */
.aed-mecanisme {
    background: var(--vm-black); color: var(--vm-bone);
    border-top: 1px solid rgba(255,255,255,0.18);
}
.aed-mecanisme .inner {
    display: grid; grid-template-columns: 1.3fr 1fr;
    min-height: 800px; align-items: stretch;
}
.aed-mecanisme .canvas {
    position: relative; background: #000; overflow: hidden;
}
.aed-mecanisme .canvas img {
    width: 100%; height: 100%; object-fit: cover;
    filter: contrast(1.05);
}
.aed-mecanisme .annotation {
    position: absolute; transform: translate(-50%, -50%);
    display: flex; align-items: center; gap: 12px;
}
.aed-mecanisme .annotation .marker {
    width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid var(--vm-bone);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
    color: var(--vm-bone);
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.aed-mecanisme .annotation .label {
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--vm-bone); background: rgba(0,0,0,0.55);
    padding: 4px 10px; white-space: nowrap;
}
.aed-mecanisme .copy {
    padding: 120px 80px;
    display: flex; flex-direction: column; justify-content: center;
    border-left: 1px solid rgba(255,255,255,0.18);
}
.aed-mecanisme .section-tag {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--vm-steel); margin-bottom: 24px;
}
.aed-mecanisme h2 {
    font-family: var(--font-display); font-size: 72px; font-weight: 500;
    line-height: 0.96; letter-spacing: 0; text-transform: uppercase; margin: 0;
}
.aed-mecanisme h2 em {
    font-family: var(--font-serif); font-style: italic; font-weight: 300;
    text-transform: none; color: var(--vm-platinum);
}
.aed-mecanisme .bars { margin: 36px 0; display: flex; gap: 32px; }
.aed-mecanisme .lead {
    font-family: var(--font-serif); font-style: italic; font-weight: 300;
    font-size: 22px; line-height: 1.45; color: var(--vm-bone);
    margin: 0 0 24px; max-width: 480px;
}
.aed-mecanisme .body {
    font-family: var(--font-serif); font-weight: 400; font-size: 16px;
    line-height: 1.65; color: var(--vm-platinum);
    margin: 0; max-width: 480px;
}

/* ---------- CTA ---------- */
.aed-cta {
    background: var(--vm-black); color: var(--vm-bone);
    padding: 160px 96px; border-top: 1px solid rgba(255,255,255,0.18);
    text-align: center;
}
.aed-cta .inner { max-width: 900px; margin: 0 auto; }
.aed-cta .section-tag {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--vm-steel); margin-bottom: 28px;
}
.aed-cta h2 {
    font-family: var(--font-display); font-size: 84px; font-weight: 500;
    line-height: 0.96; letter-spacing: 0; text-transform: uppercase;
    margin: 0 0 36px;
}
.aed-cta h2 em {
    font-family: var(--font-serif); font-style: italic; font-weight: 300;
    text-transform: none; color: var(--vm-platinum);
}
.aed-cta p.lead {
    font-family: var(--font-serif); font-style: italic; font-weight: 300;
    font-size: 22px; line-height: 1.5; color: var(--vm-platinum);
    margin: 0 auto 48px; max-width: 600px;
}
.aed-cta .ctas { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.aed-cta .closer {
    margin-top: 56px; display: flex; justify-content: center; gap: 32px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .aed-hero { min-height: 88vh; }
    .aed-hero .bg-packshot { left: 50%; right: auto; top: 46%; transform: translate(-50%, -50%) scale(1); transform-origin: center; height: 125%; opacity: 1; }
    .aed-hero .corner.left  { left: 56px; top: 90px; }
    .aed-hero .corner.right { right: 56px; top: 90px; }
    .aed-hero .center { left: 56px; right: 56px; bottom: 64px; }
    .aed-hero h1 { font-size: 96px; }
    .aed-breadcrumb { padding: 24px 56px; }
    .aed-breadcrumb .inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .aed-vision { padding: 96px 56px; }
    .aed-vision .inner { grid-template-columns: 1fr; gap: 48px; }
    .aed-vision h2 { font-size: 56px; }
    .aed-specs { padding: 96px 56px; }
    .aed-specs .head { flex-direction: column; align-items: flex-start; gap: 24px; }
    .aed-specs h2 { font-size: 52px; }
    .aed-specs .row { grid-template-columns: 56px minmax(150px, 240px) 1fr; column-gap: 28px; row-gap: 10px; padding: 22px 0; }
    .aed-specs .row .v { grid-column: 3; font-size: 22px; }
    .aed-specs .row .body { grid-column: 2 / -1; }
    .aed-gallery { padding: 96px 56px; }
    .aed-gallery h2 { font-size: 52px; }
    .aed-gallery .head { flex-direction: column; align-items: flex-start; gap: 24px; }
    .aed-mecanisme .inner { grid-template-columns: 1fr; min-height: 0; }
    /* Empilé (tablette/mobile) : le texte passe au-dessus de l'image */
    .aed-mecanisme .copy { order: 1; }
    .aed-mecanisme .canvas { order: 2; min-height: 480px; border-top: 1px solid rgba(255,255,255,0.18); }
    /* Tablette : colonne texte centrée et remplissant la largeur (plus de grand vide à droite) */
    .aed-mecanisme .copy { padding: 88px 56px; border-left: 0; border-top: 0; max-width: 760px; margin-inline: auto; }
    .aed-mecanisme .lead, .aed-mecanisme .body { max-width: none; }
    .aed-mecanisme h2 { font-size: 52px; }
    .aed-cta { padding: 120px 56px; }
    .aed-cta h2 { font-size: 56px; }
}
@media (max-width: 820px) {
    .aed-hero { min-height: 80vh; }
    .aed-hero .bg-packshot { left: 62%; right: auto; top: 44%; transform: translate(-50%, -50%) scale(1); transform-origin: center; height: 120%; opacity: 1; }
    .aed-hero .corner.left  { left: 22px; top: 78px; font-size: 9px; }
    .aed-hero .corner.right { right: 22px; top: 78px; font-size: 9px; }
    .aed-hero .center { left: 22px; right: 22px; bottom: 48px; }
    .aed-hero .eyebrow { font-size: 10px; letter-spacing: 0.28em; }
    .aed-hero h1 { font-size: 54px; }
    .aed-hero .lead .text { font-size: 18px; }
    .aed-breadcrumb { padding: 18px 22px; }
    .aed-breadcrumb .crumbs { font-size: 10px; letter-spacing: 0.22em; }
    .aed-breadcrumb .jump { flex-wrap: wrap; gap: 12px; }
    .aed-vision { padding: 72px 22px; }
    .aed-vision h2 { font-size: 38px; }
    .aed-vision .lead { font-size: 20px; }
    .aed-vision .body { font-size: 16px; }
    .aed-specs { padding: 72px 22px; }
    .aed-specs h2 { font-size: 36px; }
    .aed-specs .row { grid-template-columns: 48px 1fr; column-gap: 16px; padding: 18px 0; }
    .aed-specs .row .v { grid-column: 1 / -1; font-size: 19px; }
    .aed-specs .row .body { grid-column: 1 / -1; }
    .aed-specs .aed-origin { margin-top: 56px; }
    .aed-specs .aed-origin .tricolore { gap: 16px; }
    .aed-specs .aed-origin .text { font-size: 19px; }
    .aed-specs .aed-origin .bar { width: 40px; }
    .aed-gallery { padding: 72px 22px; }
    .aed-gallery h2 { font-size: 36px; }
    .aed-gallery .grid { grid-template-columns: 1fr; }
    .aed-mecanisme .canvas { min-height: 360px; }
    .aed-mecanisme .copy { padding: 56px 22px; }
    .aed-mecanisme h2 { font-size: 36px; }

    /* ===== Annotations (têtes A/B/C) — réglages MOBILE uniquement =====
       Modifie librement les valeurs ci-dessous. Pour changer le TEXTE ou la
       position de base d'une pastille, c'est dans le PHP :
       template-parts/aeronef-detail/mecanisme.php (lignes 13-17). */

    /* La pastille ronde (la "tête" A/B/C) */
    .aed-mecanisme .annotation .marker {
        width: 24px;          /* taille de la pastille */
        height: 24px;
        font-size: 10px;      /* taille de la lettre */
    }

    /* Le libellé à côté de la pastille */
    .aed-mecanisme .annotation .label {
        font-size: 8px;       /* taille du texte */
        letter-spacing: 0.12em;
        padding: 3px 7px;     /* marge intérieure du fond */
    }

    /* Décalage fin par pastille sur mobile (en plus du x/y % défini en PHP).
       Ici SEUL A est décalé. B et C restent à leur position (lignes commentées).
       Correspondance : nth-child(2) = A, (3) = B, (4) = C.
       Garde toujours translate(-50%, -50%) comme base de centrage. */
    .aed-mecanisme .annotation:nth-child(2) { transform: translate(-30%, -300%); } /* A */
    /* B et C repoussés à droite : le libellé visible centrait le bloc et décalait
       la pastille vers la gauche. Le translateX(50px) la remet sur son point. */
    .aed-mecanisme .annotation:nth-child(3) { transform: translate(-50%, -50%) translateX(50px); } /* B */
    .aed-mecanisme .annotation:nth-child(4) { transform: translate(-50%, -50%) translateX(50px); } /* C */

    /* Libellés affichés sur mobile. Pour ne garder que les pastilles A/B/C,
       décommente la ligne ci-dessous. */
    /* .aed-mecanisme .annotation .label { display: none; } */
    /* ================================================================ */
    .aed-cta { padding: 80px 22px; }
    .aed-cta h2 { font-size: 36px; }
    .aed-cta p.lead { font-size: 18px; }
}

/* iPad Mini (768px) / iPad Air (820px) en portrait : la règle mobile ≤820px, calibrée
   pour les téléphones, rend le packshot trop petit. On l'agrandit et on le recentre
   pour cette plage tablette uniquement. Les téléphones (≤600px) gardent leur taille ;
   Surface Pro / desktop (>1100px) ne sont pas concernés. */
@media (min-width: 601px) and (max-width: 820px) {
    .aed-hero .bg-packshot { left: 50%; height: 130%; }
}
