/* Publication pass (2026-10-06, révisé 2026-10-07). Loaded after every other stylesheet. */

/* Film footer: parent company link next to the legal notice. */
.film-parent-link{margin-left:14px}
@media(max-width:700px){.film-parent-link{display:none}}

/* 2026-10-07 : le voile radial derrière le rail est retiré ; le rail vit désormais dans le bandeau (band.css). */

/* Language switch (2026-10-12): one pill in every header showing the other language (FR on English
   pages, EN on French ones). Same shape as the mobile Menu toggle; hidden while a company profile or a
   team profile is open, like the rest of the navigation. */
.header-links .lang-switch{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:6px 13px;border:1px solid var(--line);border-radius:22px;font-size:12px;font-weight:500;letter-spacing:.08em;text-decoration:none}
.header-links .lang-switch:hover{color:var(--gold);border-color:var(--gold)}
body.portfolio-v10-visible .header-links .lang-switch{color:#173f50;border-color:#173f5066;background:#fffaf0aa}
body.portfolio-profile-open .header-links .lang-switch,body.team-profile-open .header-links .lang-switch{visibility:hidden}

/* Mobile header: Manifest and Contact move into the chapter menu; the toggle reads as a button.
   Les pages de lecture (Manifest, mentions légales) gardent leurs liens : « Back to the site » doit rester visible. */
#chapters .menu-extra{display:none!important}
@media(max-width:700px){
 body:not(.manifesto-page) .header-links>a:not(.lang-switch){display:none}
 .header-links .lang-switch{min-height:40px;padding:8px 13px}
 .manifesto-page .header-links{gap:12px}
 .manifesto-page #back-film{display:inline-flex;align-items:center;min-height:40px;padding:8px 14px;border:1px solid var(--line);border-radius:22px;font-size:12px;font-weight:500;max-width:none}
 #menu-toggle{display:inline-flex;align-items:center;min-height:40px;padding:8px 16px;border:1px solid var(--line);border-radius:22px;color:var(--ink);font-size:13px;font-weight:500;letter-spacing:.02em}
 #chapters.open .menu-extra{display:flex!important;font-size:15px;color:var(--soft)}
 .chapters.open a[data-chapter-link="contact"]+.menu-extra{margin-top:12px;padding-top:14px;border-top:1px solid var(--line)}
 /* 2026-10-15 (retour de Vincent) : le nom du chapitre courant du bandeau ordinateur (chapter-band.js) n'a rien à faire en bas du menu téléphone. */
 #chapters .chapter-name{display:none}
 .chapters a.menu-extra:after{display:none}
 body.portfolio-v10-visible #menu-toggle{color:#173f50;border-color:#173f5066;background:#fffaf0aa}
}

/* Map legend (2026-10-12, demande de Vincent) : « Our offices » / « Nos bureaux » reprend la typographie des
   bureaux sur la carte (BORDEAUX, LIMOGES, POITIERS : capitales, graisse 700, or). Ordinateur et téléphone. */
.map-legend{text-transform:uppercase;font-weight:700;letter-spacing:.08em;color:#f3d89d}

/* Mobile South West (option 3c) : titre en haut, accroche en colonne étroite dans le golfe de Gascogne. */
@media(max-width:700px){
 /* 2026-10-12 : le bloc de texte commence sous le header (70 px au lieu de 98) ; la largeur du titre suit le texte pour que
    la zone d'exclusion des noms de villes (territory-scene.js) ne barre pas toute la ligne. */
 body[data-chapter=south-west] #story{inset:70px 24px auto;max-height:none}
 body[data-chapter=south-west] .territory-chapter{display:block;position:relative}
 /* 2026-10-12 : l'accroche descend sous la Bretagne. L'écart est porté par le titre (margin-bottom), que viewport-fit.js ne réduit pas, contrairement au margin-top de .lead.
    Les 28 px ajoutés compensent la remontée du bloc : l'accroche ne bouge pas. */
 body[data-chapter=south-west] .territory-chapter h2{width:fit-content;margin-bottom:max(160px,calc(20svh + 28px))}
 /* 2026-10-12 (retour de Vincent) : le titre se lit par-dessus la terre de la Bretagne, pas dans la Manche. La côte nord est à
    ~16 svh, la côte sud à ~27 svh (toutes tailles de téléphone) : le titre est décalé visuellement à 20 svh (position relative,
    le flux ne change pas, l'accroche et Read more restent en place) avec une ombre pour rester lisible sur le satellite. */
 /* 2026-10-15 (retour de Vincent) : le titre sur la terre de la Bretagne prêtait à confusion. La Bretagne est estompée par un
    voile radial posé sur le panneau carte (#territory-panel, au-dessus de la scène, donc .shade ne suffit pas) et le titre
    remonte à 10 svh, sous le header, sans plus chercher la terre. */
 body[data-chapter=south-west] .territory-chapter h2{position:relative;top:calc(10svh - 70px);text-shadow:0 2px 14px #03131d,0 1px 3px #03131da0}
 body[data-chapter=south-west] #territory-panel::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:3;background:radial-gradient(70% 34% at 18% 22%,#03131dd0 0,#03131d99 45%,transparent 100%)}
 body[data-chapter=south-west] .territory-chapter .lead{display:block;width:104px;max-width:104px;margin-top:0;font-size:12px;line-height:1.5;color:#e4edf0;text-shadow:0 1px 8px #03131d}
 body[data-chapter=south-west] .territory-chapter .read-more{margin-top:10px;font-size:11px;min-height:30px;gap:14px}
 /* 2026-10-15 (retour de Vincent) : la légende se lit sous l'accroche, avant « En savoir plus » (ordre du DOM), plus en haut à droite. */
 body[data-chapter=south-west] .territory-chapter .map-legend{display:flex;position:static;width:fit-content;margin:12px 0 0;font-size:10px;text-shadow:0 1px 8px #03131d}
 body[data-chapter=south-west] .shade{background:linear-gradient(180deg,#03131dcc 0,#03131d66 16%,transparent 32%),linear-gradient(0deg,#03131d99,transparent 18%)}
 /* 2026-10-15 : le titre des secteurs peut passer sur deux lignes dans le volet téléphone (reading.css le garde sur une ligne ailleurs). */
 #story #sectors-title{white-space:normal;text-wrap:balance}
}
/* 2026-10-12 : écrans très courts (iPhone SE, Safari avec ses barres) : l'accroche remonte un peu pour que « Read more » ne touche pas les commandes du bas. */
@media(max-width:700px) and (max-height:600px){body[data-chapter=south-west] .territory-chapter h2{margin-bottom:110px}}
/* 2026-10-12 : sous 700 px de haut la Bretagne ne fait plus que ~70 px au droit du titre : corps 22 px (au lieu de 24) et titre calé à 19 svh. */
@media(max-width:700px) and (max-height:700px){body[data-chapter=south-west] .territory-chapter h2{font-size:22px;top:calc(12svh - 70px)}}

/* Mobile sectors (option 2e) : l'océan occupe tout l'écran, titre en haut, trois secteurs en colonnes en bas. */
@media(max-width:700px){
 .sector-stable .stage{opacity:0}
 .sector-stable .sector-ocean{position:fixed;inset:0;height:auto;min-height:0;flex:none;z-index:-1}
 /* 2026-10-12 : plus de voile sur la mer (le header est déjà opaque), seulement un fondu sous le header. */
 .sector-stable .sector-ocean-shade{background:linear-gradient(180deg,#092b3d 0,#092b3d00 14%)}
 .sector-stable .sector-copy .lead,.sector-stable .sector-copy #sector-legend{display:none}
 /* 2026-10-12 (option C choisie par Vincent) : tout le texte du chapitre forme une carte en verre dépoli en bas
    (titre, Read more à sa droite, trois secteurs sans sous-titre) ; les noms sur les vagues gardent la bande du dessus
    et s'effacent avant la carte (sector-scene.js mesure le texte). */
 .sector-stable #story .sector-chapter{justify-content:flex-end}
 .sector-stable .sector-copy{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:14px;row-gap:4px;margin:0 12px 6px;padding:16px 16px 14px;background:#071d2b66;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid #fffaf022;border-radius:14px}
 .sector-stable .sector-copy h2{flex:0 1 auto;margin:0}
 .sector-stable #story #sectors-title{font-size:clamp(20px,5.6vw,36px)}
 .sector-stable .sector-copy .read-more{order:1;margin:0 0 0 auto;align-self:end;font-size:11px;min-height:0;padding:0 0 6px;gap:10px}
 .sector-stable .sector-copy .sector-notes{order:2;position:static;flex:0 0 100%;margin:16px 0 0;grid-template-columns:1fr 1fr 1fr;gap:0}
 .sector-stable .sector-copy .sector-notes>div{padding:12px 10px 8px;border-top:1px solid rgba(255,250,240,.4)}
 .sector-stable .sector-copy .sector-notes>div:first-child{padding-left:0}
 .sector-stable .sector-copy .sector-notes>div+div{border-left:1px solid rgba(255,250,240,.4)}
 .sector-stable .sector-copy .sector-notes h3{font-size:15px;margin-bottom:0}
 .sector-stable .sector-copy .sector-notes p{display:none}
 .sector-chapter{min-height:100%}
}

/* Short laptop screens: the caption no longer sits on the last team member. */
@media(max-height:650px) and (min-width:701px){.team-caption{display:none}}

/* Legal and credits pages: long URLs wrap on narrow screens. */
.legal-copy a,.manifesto-copy a{overflow-wrap:anywhere}

/* Arrivée directe (2026-10-16). Avant que site.js ne prenne la main, le script inline en tête des pages film pose
   html[data-arrival] : le texte du chapitre reste invisible et s'écrit une seule fois à l'arrivée du code (choix de Vincent,
   plus de titre qui disparaît puis se réécrit) ; l'image fixe du chapitre est déjà sur #poster. Pour l'équipe, #poster porte
   l'aperçu flou de 40 px (data-lqip) tant que la photo n'est pas décodée ; la carte montre son image fixe dans le panneau. */
html[data-arrival] #story{visibility:hidden} /* filet (2026-10-18) : onerror sur la balise site.js des deux pages film retire data-arrival si le module ne se charge pas, le texte s'affiche alors sans animation */
html[data-arrival="team"] .stage{background:#276c9d}
.stage>#poster.lqip{filter:blur(18px);transform:scale(1.08)}
#territory-still{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
#territory-still[hidden]{display:none}
