/* ===== Charte Kerwen Hospitality appliquée au site (8 novembre 2026) =====
   Chargée après style.css sur toutes les pages. Validée point par point avec Clément Marsaudon.
   Jetons du design system : vert #103326 · beige-page #F6F1E7 · beige-soutenu #EDE6D6 · vert-encre #1F3327
   taupe #887462 · or #B08D4F · or-clair #F0D69C · creme #F7F4EC
   Site uniquement : dégradés autorisés ; ombres (survol, bandeau) et voiles sombres des photos conservés. */

@font-face { font-family: 'Baskerville Old Face'; src: url('../fonts/BaskervilleOldFace-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Baskerville Old Face'; src: url('../fonts/BaskervilleOldFace-Italic.woff') format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Baskerville Old Face'; src: url('../fonts/BaskervilleOldFace-Bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Baskerville Old Face Caps'; src: url('../fonts/BaskervilleOldFaceCaps-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Baskerville Old Face Caps'; src: url('../fonts/BaskervilleOldFaceCaps-Bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --vert: #103326; --beige-page: #F6F1E7; --beige-soutenu: #EDE6D6; --vert-encre: #1F3327;
  --taupe: #887462; --or: #B08D4F; --or-clair: #F0D69C; --creme: #F7F4EC;
  --filet: #D8CEB2;   /* filets de structure : teinte d'origine du site */
  --trait: var(--or);   /* traits, icônes et K : or, comme à l'origine (8 nov., 12 h) */
  --trait-plein: var(--or);
  --ink: var(--vert); --ink-soft: var(--vert-encre); --gold: var(--or);
  --cream: var(--beige-page); --tinted: var(--beige-soutenu); --line: var(--filet); --border-box: var(--beige-soutenu);
  --caps: 'Baskerville Old Face Caps', 'Baskerville Old Face', serif;
}

/* 1. Police : Baskerville Old Face uniquement */
body, .btn, .form-field, button { font-family: 'Baskerville Old Face', serif; }
body { background: var(--beige-page); color: var(--vert-encre); }

/* 2. Couleurs et tailles (ajustées à Baskerville Old Face, plus fine) */
h1, h2, .card-title, .tl-title, .team-role, .related-title, .stat-title, .upload-title, .faq-item summary, .legal h3 { color: var(--vert); }
h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.2; }
h2, h1.as-h2 { font-size: clamp(26px, 3vw, 33px); line-height: 1.2; }
/* Traits des titres de section et des intitulés : or, allongés, en dégradé comme les séparateurs */
h2::after, h1.as-h2::after { width: 160px; background: linear-gradient(to right, transparent 0%, var(--or) 50%, transparent 100%); }
.mini-rule, .gold-rule { width: 64px; background: linear-gradient(to right, transparent 0%, var(--or) 50%, transparent 100%); }
.lead { font-size: 19px; color: var(--vert-encre); line-height: 1.55; }
.card-title, .tl-title, .team-role, .related-title { font-size: 20px; }
.card-text, .tl-text, .team-text, .related-text, .stat-sub, .legal p, .legal li, .faq-item p, .related-faq, .faq-more, .form-alt, .upload-sub {
  font-size: 17px; color: var(--vert-encre); line-height: 1.6; }
.form-note { font-size: 16px; color: var(--vert-encre); }
.faq-item summary { font-size: 18.5px; }
.legal h3 { font-size: 21px; border-bottom-color: var(--filet); }
.legal .updated { font-size: 15px; color: var(--vert-encre); }
.dash-list span.txt { font-size: 17px; color: var(--vert-encre); }

/* Intitulés en petites capitales (police Caps), espacement léger */
.nav-links a, .lang-switch a, .card-more, .team-link, .form-label, .eyebrow, .eyebrow-photo, .btn, footer .foot-links a {
  font-family: var(--caps); text-transform: none; letter-spacing: 0.04em; }
.nav-links a { font-size: 17px; }
.lang-switch a, .nav-links .lang-switch a { font-size: 16px; letter-spacing: 0.04em; }
.form-label { font-size: 16px; color: var(--vert); }
.btn { font-size: 17px; }
.eyebrow { font-size: 16px; color: var(--or); }
.eyebrow-photo { font-size: 16px; color: var(--or-clair); }

/* 3. Bandeau de tête vert : K crème seul, rubrique active en or clair soulignée */
.site-header { background: var(--vert); }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(16,51,38,0.28); }
.nav-logo img { width: 32px; }
.nav-links a { color: var(--creme); }
.nav-links a:hover, .nav-links a.active { color: var(--or-clair); border-bottom-color: var(--or-clair); }
.lang-switch { border-left-color: rgba(240,214,156,0.45); }
.lang-switch a { color: var(--creme); }
.lang-switch span { color: rgba(240,214,156,0.6); }
.lang-switch a.active, .nav-links .lang-switch a.active { color: var(--or-clair); border-bottom-color: var(--or-clair); }
.nav-toggle span { background: var(--creme); }
.rule { height: 1px; background: var(--trait); }
.site-header .rule { background: var(--or); }
@media (max-width: 760px) {
  .nav-links a { border-bottom-color: rgba(240,214,156,0.25); }
  .nav-links a.active { color: var(--or-clair); border-bottom-color: rgba(240,214,156,0.25); }
  .nav-links .lang-switch a, .nav-links .lang-switch a.active { color: var(--creme); }
  .nav-links .lang-switch a.active { color: var(--or-clair); border-bottom-color: var(--or-clair); }
}

/* Photos d'en-tête : voiles actuels conservés ; textes crème, devise en or clair */
.h1-photo, .hero-home h1.hero-h1 { color: var(--creme); }
.h1-photo { font-size: clamp(30px, 4.2vw, 44px); }
.hero-home h1.hero-h1 { font-size: clamp(12px, 3.5vw, 28px); }
.lead-photo { color: var(--creme); font-size: clamp(17px, 1.9vw, 20px); }
.hero-home p.h1-photo { color: var(--or-clair); font-size: clamp(17px, 2vw, 23px); }

/* 9. Filets qui s'estompent, en or, sans losange ; K des grilles en or */
.sep-line { background: linear-gradient(to right, transparent 0%, var(--trait) 50%, transparent 100%); }
.card-grid { border-top-color: var(--filet); }
.tl-line { background: linear-gradient(to bottom, var(--trait) 0%, var(--filet) 70%, transparent 100%); }

/* 13. Icônes et liens « Découvrir » / « LinkedIn » en or (couleur des traits), petites capitales, sans flèche */
.c-icon, .c-icon * { stroke: var(--trait-plein); }
.card-more, .team-link { color: var(--or); font-size: 18px; }
.card-more::after, .team-link::after { content: ' →'; }
.card-link:hover .card-more, .related-card:hover .card-more, .team-link:hover { border-bottom-color: var(--trait); }
.card-link:hover .card-title { color: var(--or); }

/* 7. Angles droits partout (portraits compris) */
.card-photo, .card-link, .team-card, .team-avatar-photo, .team-avatar-initials, .team-card.centered .team-avatar-photo-inner,
.btn, .form-field, .upload-box, .related-card { border-radius: 0 !important; }

/* Boutons et formulaire */
.btn { background: var(--vert); color: var(--creme); padding: 15px 34px; }
.btn:hover { background: var(--vert-encre); }
.form-field { border-color: var(--filet); background: var(--creme); font-size: 17px; }
.form-field::placeholder { color: #9A9488; }
.upload-box { border-color: var(--trait); background: var(--creme); }

/* 10. Étapes : chiffres romains dans des carrés */
.tl-badge { position: relative; isolation: isolate; border: none; border-radius: 0; width: 56px; height: 56px; min-height: 56px; font-size: 21px; color: var(--vert); }
/* Chiffres romains : double cadre coupé épuré (variante I, 8 nov.) — vert 1 px, or 1 px à 5 px, ouverts en haut à droite et en bas à gauche */
.tl-badge::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(var(--vert), var(--vert)) left top / calc(100% - 20px) 1px no-repeat,
  linear-gradient(var(--vert), var(--vert)) left top / 1px calc(100% - 20px) no-repeat,
  linear-gradient(var(--vert), var(--vert)) right bottom / calc(100% - 20px) 1px no-repeat,
  linear-gradient(var(--vert), var(--vert)) right bottom / 1px calc(100% - 20px) no-repeat; }
.tl-badge::after { content: ''; position: absolute; inset: 5px; z-index: -1; background:
  linear-gradient(var(--or), var(--or)) left top / calc(100% - 26px) 1px no-repeat,
  linear-gradient(var(--or), var(--or)) left top / 1px calc(100% - 26px) no-repeat,
  linear-gradient(var(--or), var(--or)) right bottom / calc(100% - 26px) 1px no-repeat,
  linear-gradient(var(--or), var(--or)) right bottom / 1px calc(100% - 26px) no-repeat; }
.tl-badge-col { width: 58px; }
.tl-line { margin-top: 8px; }

/* 11. Cadre coupé : filet extérieur vert 2 px, filet intérieur or 1 px à 7 px,
       ouverts aux coins haut-droit et bas-gauche ; fond éventuel à 13 px du bord */
.team-card, .related-card, .stats-grid > div { position: relative; isolation: isolate; background: transparent; border: none; }
.team-card::before, .related-card::before, .stats-grid > div::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--vert), var(--vert)) left top / calc(100% - 34px) 2px no-repeat,
    linear-gradient(var(--vert), var(--vert)) left top / 2px calc(100% - 34px) no-repeat,
    linear-gradient(var(--vert), var(--vert)) right bottom / calc(100% - 34px) 2px no-repeat,
    linear-gradient(var(--vert), var(--vert)) right bottom / 2px calc(100% - 34px) no-repeat; }
.team-card::after, .related-card::after, .stats-grid > div::after {
  content: ''; position: absolute; inset: 7px; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--trait), var(--trait)) left top / calc(100% - 50px) 1px no-repeat,
    linear-gradient(var(--trait), var(--trait)) left top / 1px calc(100% - 50px) no-repeat,
    linear-gradient(var(--trait), var(--trait)) right bottom / calc(100% - 50px) 1px no-repeat,
    linear-gradient(var(--trait), var(--trait)) right bottom / 1px calc(100% - 50px) no-repeat,
    linear-gradient(var(--cadre-fond, transparent), var(--cadre-fond, transparent)) center / calc(100% - 12px) calc(100% - 12px) no-repeat; }
.team-card { --cadre-fond: var(--beige-page); padding: 38px 36px; }
.related-card { --cadre-fond: transparent; padding: 32px 28px; }
.related-card:hover { border-color: transparent; }
.related-card:hover .related-title { color: var(--or); }
.team-avatar-photo { border: 1px solid var(--trait); padding: 3px; background: var(--beige-page); }
.card-grid-wrap:has(.team-row) .grid-vline { display: none; }

/* 12. Chiffres clés de l'accueil : trois encadrés verts, titre or clair souligné, texte crème */
.stats-grid { border-top: none; gap: 18px; margin-top: 26px; }
.stats-grid > div { --cadre-fond: var(--vert); padding: 34px 28px; border-top: none !important; }
.stat-title { color: var(--or-clair); font-family: var(--caps); font-size: 19px; letter-spacing: 0.02em; padding-bottom: 10px; margin-bottom: 12px; position: relative; }
.stat-title::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 60px; height: 1px; background: var(--or-clair); transform: translateX(-50%); }
.stat-sub { color: var(--creme); }
.card-grid-wrap:has(.stats-grid) .grid-vline { display: none; }

/* FAQ, mentions, liens dans les textes */
.faq { border-top-color: var(--filet); }
.faq-item { border-bottom-color: var(--filet); }
.faq-item summary::after { border-color: var(--trait-plein); }
.faq-item summary:hover { color: var(--or); }
.legal a, .faq-item p a, .faq-more a, .related-faq a, .form-alt a, .form-note a, .tl-text a, .card-text a { color: var(--vert); border-bottom-color: var(--trait); }

/* 4. Pied de page vert */
footer { background: var(--vert); color: var(--creme); padding-top: 40px; }
footer .foot-links { gap: 4px 6px; }
footer .foot-links a { color: var(--creme); font-size: 16px; }
footer .foot-links a:hover { color: var(--or-clair); }
.foot-contact a { color: var(--creme) !important; border-bottom-color: var(--or) !important; font-size: 17px; }
.foot-sep { color: var(--or); }
footer .foot-tagline { color: var(--creme); font-size: 16px; letter-spacing: 0; }
footer .copyright { color: var(--or-clair); font-size: 15px; }

/* Mobile : titre de l'accueil lisible, sur deux lignes si besoin */
@media (max-width: 640px) { .hero-home h1.hero-h1 { white-space: normal; font-size: 19px; line-height: 1.3; max-width: 320px; } .hero-home p.h1-photo { font-size: 17px; } }

/* Cartes des associés : même espacement en bas dans les deux blocs (lien LinkedIn aligné en bas, noms alignés en haut) */
.team-card { display: flex; }
.team-card-inner { flex: 1; align-items: stretch; }
.team-card-inner > .team-avatar-photo { align-self: center; }
.team-card-inner > div:last-child { display: flex; flex-direction: column; }
.team-card-inner > div:last-child .team-link { margin-top: auto; padding-top: 12px; align-self: flex-start; }

/* Cartes des associés : noms en petites capitales centrés au-dessus du texte, lien LinkedIn centré sous le texte (8 nov.) */
.team-role { font-family: var(--caps); letter-spacing: 0.04em; text-align: center; }
.team-text { max-width: none; text-align: center; text-wrap: balance; }
.team-card-inner > div:last-child .team-link { align-self: center; }
@media (max-width: 640px) {
  .team-card-inner { flex-direction: column; align-items: center; gap: 18px; }
  .team-card-inner > div:last-child { width: 100%; }
  .team-card { padding: 34px 26px; }
}

/* Cartes des associés : texte centré verticalement entre le nom et le lien (même écart au-dessus et en dessous) */
.team-card-inner > div:last-child .team-role { margin-bottom: 0; }
.team-card-inner > div:last-child .team-text { margin: auto 0; padding: 10px 0; }
.team-card-inner > div:last-child .team-link { margin-top: 0; padding-top: 0; }

/* Titres en petites capitales : titre de l'accueil et titres de section (8 nov.) ; sous-titres inchangés */
.hero-home h1.hero-h1, h2, h1.as-h2 { font-family: var(--caps); letter-spacing: 0.03em; }

/* Lisibilité des petites capitales (option C) : gras léger de la charte + taille légèrement augmentée */
.team-role { font-size: 21.5px; font-weight: 700; letter-spacing: 0.05em; }
.stat-title { font-size: 20px; font-weight: 700; letter-spacing: 0.05em; }
.form-label { font-size: 17px; font-weight: 700; letter-spacing: 0.05em; }
/* Pages intérieures : titre sur la photo en petites capitales, comme l'accueil ; texte d'introduction inchangé */
.hero-photo-wrap:not(.hero-home) .h1-photo { font-family: var(--caps); letter-spacing: 0.03em; }

/* Recrutement : champ de dépôt du CV aux polices du site (bouton en petites capitales, texte en Baskerville Old Face) */
.upload-title { font-size: 20px; margin-bottom: 6px; }
.upload-box input[type="file"] { font-family: 'Baskerville Old Face', serif; font-size: 16px; color: var(--vert-encre); max-width: 100%; }
.upload-box input[type="file"]::file-selector-button {
  font-family: var(--caps); font-size: 16px; letter-spacing: 0.04em; color: var(--creme); background: var(--vert);
  border: none; border-radius: 0; padding: 9px 20px; margin-right: 14px; cursor: pointer; }
.upload-box input[type="file"]::file-selector-button:hover { background: var(--vert-encre); }

/* Chiffres clés : titres sur une seule ligne (FR et EN) — marges intérieures et espacement des lettres légèrement réduits ;
   sur tablette, les trois encadrés s'empilent pour garder des titres complets sur une ligne */
.stats-grid > div { padding: 34px 26px; }
.stat-title { font-size: 18px; letter-spacing: 0.02em; line-height: 1.3; }
@media (max-width: 1060px) {
  .stats-grid.cols-3 { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .stats-grid > div { padding: 30px 28px; }
}

/* Tablette : cartes des associés empilées, photo au-dessus, même largeur que les chiffres clés */
@media (max-width: 1060px) {
  .team-row { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; gap: 18px; }
  .team-card-inner { flex-direction: column; align-items: center; gap: 18px; }
  .team-card-inner > div:last-child { width: 100%; }
  .team-card { padding: 34px 28px; }
}

/* Dépôt du CV : bouton aux textes du site (FR/EN) à la place du bouton natif du navigateur.
   Le vrai champ fichier couvre toute la zone (cliquable, accessible au clavier), mais reste invisible. */
.file-picker { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 16px; max-width: 100%; }
.file-picker .file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.file-picker .file-btn { font-family: var(--caps); font-size: 16px; letter-spacing: 0.04em; color: var(--creme); background: var(--vert); padding: 10px 22px; }
.file-picker:hover .file-btn { background: var(--vert-encre); }
.file-picker .file-input:focus-visible + .file-btn { outline: 2px solid var(--or); outline-offset: 2px; }
.file-picker .file-name { font-family: 'Baskerville Old Face', serif; font-size: 16px; color: var(--vert-encre); overflow-wrap: anywhere; }

/* ===== 12. Pages métiers enrichies, page Investissement et menu « Nos métiers » (validés le 8 novembre 2026) ===== */

/* Introduction sous la photo */
.section .intro-text { max-width: 760px; margin: 0 auto; text-align: center; font-size: 19px; line-height: 1.7; color: var(--vert-encre); }

/* Texte suivi */
.prose { max-width: 720px; margin: 0 auto; }
.prose p { font-size: 17px; line-height: 1.8; color: var(--vert-encre); text-align: left; }

/* Listes : puce principale du design system (kerwen-puce-principale) */
.k-list { list-style: none; max-width: 720px; margin: 0 auto; padding: 0; }
.k-list li { position: relative; padding: 13px 0 13px 24px; font-size: 17px; line-height: 1.7; color: var(--vert-encre); border-bottom: 1px solid var(--filet); }
.k-list li:first-child { border-top: 1px solid var(--filet); }
.k-list li::before { content: ''; position: absolute; left: 0; top: 21px; width: 14px; height: 14px; background: url('/assets/images/kerwen-puce-principale.svg') center / 14px 14px no-repeat; }
.k-list li strong { font-family: var(--caps); font-weight: bold; color: var(--vert); letter-spacing: .02em; font-size: 17.5px; }

/* Tableau comparatif : face-à-face (option A) */
.ff { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 230px 1fr; }
.ff > * { grid-row: var(--r); }
.ff-hd { font-family: var(--caps); font-weight: bold; font-size: 21px; color: var(--vert); text-align: center; letter-spacing: .03em; padding-bottom: 20px; }
.ff-hd::after { content: ''; display: block; width: 120px; height: 1px; margin: 14px auto 0; background: linear-gradient(to right, transparent, var(--or), transparent); }
.ff-line { grid-column: 1 / -1; height: 1px; background: linear-gradient(to right, transparent 0%, var(--filet) 20%, var(--or) 50%, var(--filet) 80%, transparent 100%); }
.ff-k, .ff-c { padding: 18px 22px; display: flex; align-items: center; justify-content: center; text-align: center; }
.ff-k { grid-column: 2; font-family: var(--caps); font-weight: bold; font-size: 15.5px; color: var(--or); letter-spacing: .03em; line-height: 1.5; }
.ff-c { font-size: 17px; line-height: 1.6; color: var(--vert-encre); }
.ff-a { grid-column: 1; } .ff-b { grid-column: 3; }

/* Cartes supplémentaires (Recrutement) */
.cards-extra { margin-top: 46px; padding-top: 46px; }
.cards-extra::before { content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 1px; background: linear-gradient(to right, transparent, var(--or), transparent); }
.card-grid-wrap.cards-extra { position: relative; }

/* FAQ des pages métiers */
.section .faq { max-width: 760px; }

@media (max-width: 720px) {
  .ff { grid-template-columns: 1fr 1fr; }
  .ff > * { grid-row: auto; }
  .ff-hd { display: none; }
  .ff-k { grid-column: 1 / -1; padding: 18px 10px 4px; font-size: 16px; }
  .ff-c { flex-direction: column; justify-content: flex-start; padding: 6px 10px 18px; font-size: 16px; }
  .ff-a { grid-column: 1; } .ff-b { grid-column: 2; border-left: 1px solid var(--filet); }
  .ff-c::before { content: attr(data-label); font-family: var(--caps); font-size: 13.5px; color: var(--vert); font-weight: bold; letter-spacing: .02em; margin-bottom: 4px; }

  .section .intro-text { font-size: 18px; }
  .prose p { text-align: left; }
}

/* Trait sous le titre des blocs « Nos autres métiers » */
.related-title { display: block; }
.related-title::after { content: ''; display: block; width: 64px; height: 1px; margin: 12px auto 4px; background: linear-gradient(to right, transparent 0%, var(--or) 50%, transparent 100%); }

/* Phrase sous le titre sur une seule ligne (ordinateur) */
@media (min-width: 900px) { .lead-photo.lead-1l { max-width: none; white-space: nowrap; } }

/* Page Investissement : orientation et quatre métiers */
.orient { max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.orient::before { content: ''; position: absolute; left: 50%; top: 8%; bottom: 8%; width: 1px; background: linear-gradient(to bottom, transparent, var(--or), transparent); }
.orient-col { padding: 6px 40px; text-align: center; }
.orient-t { font-family: var(--caps); font-weight: bold; font-size: 20px; color: var(--vert); letter-spacing: .02em; }
.orient-t::after { content: ''; display: block; width: 64px; height: 1px; margin: 12px auto 14px; background: linear-gradient(to right, transparent, var(--or), transparent); }
.orient-col p { font-size: 17px; line-height: 1.7; color: var(--vert-encre); margin-bottom: 14px; }
.orient-col strong { color: var(--vert); }
.orient-here { font-family: var(--caps); font-size: 15px; color: var(--or); letter-spacing: .03em; }
.related-grid.cols-4 { grid-template-columns: repeat(2, 1fr); max-width: 780px; gap: 26px; }

@media (max-width: 720px) { .orient { grid-template-columns: 1fr; } .orient::before { display: none; } .orient-col + .orient-col { border-top: 1px solid var(--filet); padding-top: 26px; margin-top: 20px; } .related-grid.cols-4 { grid-template-columns: 1fr; } }


/* ---------- Menu « Nos métiers » déroulant ---------- */
.nav-links { align-items: center; }
.nav-dd { position: relative; }
.nav-dd-btn { background: none; border: 0; border-bottom: 1px solid transparent; padding: 0 0 3px; cursor: pointer;
  font-family: var(--caps); font-size: 17px; letter-spacing: .04em; color: var(--creme); display: inline-flex; align-items: center; gap: 9px; }
.nav-dd-btn:hover, .nav-dd.open .nav-dd-btn, .nav-dd-btn.active { color: var(--or-clair); }
.nav-dd-btn.active { border-bottom-color: var(--or-clair); }
.dd-chev { width: 6px; height: 6px; border-right: 1px solid var(--or-clair); border-bottom: 1px solid var(--or-clair); transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.nav-dd.open .dd-chev { transform: translateY(1px) rotate(-135deg); }
.nav-dd-panel { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); padding-top: 24px; z-index: 200; display: none; }
.nav-dd.open .nav-dd-panel { display: block; }
@media (hover: hover) and (min-width: 761px) {
  .nav-dd:hover .nav-dd-panel, .nav-dd:focus-within .nav-dd-panel { display: block; }
  .nav-dd:hover .dd-chev { transform: translateY(1px) rotate(-135deg); }
  .nav-dd:hover .nav-dd-btn { color: var(--or-clair); }
}
.nav-dd-inner { background: var(--vert); border-top: 1px solid var(--or); min-width: 340px; padding: 8px 0 10px; box-shadow: 0 10px 24px rgba(16,51,38,.25); }
.nav-links .nav-dd-inner a { display: block; padding: 13px 30px; border-bottom: 0; white-space: nowrap; text-align: left; position: relative; }
.nav-links .nav-dd-inner a + a::before { content: ''; position: absolute; left: 30px; right: 30px; top: 0; height: 1px; background: linear-gradient(to right, rgba(240,214,156,.35), rgba(240,214,156,0)); }
.dd-t { display: block; font-size: 17px; color: var(--creme); }
.dd-s { display: block; font-family: 'Baskerville Old Face', serif; font-style: italic; font-size: 15px; letter-spacing: 0; color: var(--or-clair); opacity: .85; margin-top: 2px; }
.nav-links .nav-dd-inner a:hover .dd-t, .nav-links .nav-dd-inner a.active .dd-t { color: var(--or-clair); }
.nav-links .nav-dd-inner a.active .dd-t { text-decoration: underline; text-decoration-color: var(--or-clair); text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* Menu replié (tablette, mobile) : « Nos métiers » devient un intertitre, les métiers sont listés dessous */
@media (max-width: 760px) {
  .nav-links { align-items: stretch; }
  .nav-dd-btn { width: 100%; justify-content: center; padding: 16px 0 8px; font-size: 14px; color: var(--or-clair); cursor: default; pointer-events: none; border-bottom: 0 !important; }
  .dd-chev { display: none; }
  .nav-dd-panel, .nav-dd.open .nav-dd-panel { display: block; position: static; transform: none; padding: 0; }
  .nav-dd-inner { background: none; border: 0; box-shadow: none; min-width: 0; padding: 0; border-bottom: 1px solid rgba(240,214,156,.25); }
  .nav-links .nav-dd-inner a { text-align: center; padding: 11px 0; }
  .nav-links .nav-dd-inner a + a::before { display: none; }
  .dd-s { display: none; }
  .dd-t { font-size: 17px; }
}

/* Téléphone : « Nos métiers » à la taille des autres rubriques, flèche pour dérouler les métiers (option 1, 8 nov.) */
@media (max-width: 760px) {
  .nav-dd-btn { pointer-events: auto; cursor: pointer; font-size: 17px; color: var(--creme); padding: 13px 0; border-bottom: 1px solid rgba(240,214,156,.25) !important; width: 100%; justify-content: center; gap: 12px; }
  .nav-dd-btn.active { color: var(--or-clair); }
  .dd-chev { display: inline-block; }
  .nav-dd-panel { display: none; }
  .nav-dd.open .nav-dd-panel { display: block; }
  .nav-dd-inner { background: rgba(247,244,236,.04); border-bottom: 1px solid rgba(240,214,156,.25); padding: 4px 0; }
  .nav-links .nav-dd-inner a { padding: 10px 0; }
  .nav-links .nav-dd-inner a .dd-t { font-size: 16px; }
}

/* Pied de page : onze liens sur une ligne depuis l'ajout d'Investissement */
footer .foot-links a { font-size: 15px; padding-left: 3px; padding-right: 3px; }
/* Tablette : trois cartes côte à côte sans couper leurs titres */
@media (min-width: 721px) and (max-width: 1060px) { .card-grid.cols-3 > div { padding-left: 14px; padding-right: 14px; } .card-grid.cols-3 .card-title { font-size: 19px; } }
@media (max-width: 720px) { .orient-t { font-size: 18px; } }

/* Étapes numérotées : le cadre du chiffre est centré verticalement sur le titre et le texte de l'étape (8 nov., 17 h) */
.tl-row { align-items: stretch; }
.tl-content { padding: 17px 0; align-self: center; }
.tl-row:last-child .tl-content { padding-bottom: 17px; }
.tl-wrap { margin-top: -17px; margin-bottom: -17px; }
.tl-badge-col { justify-content: center; }
.tl-badge-col::before { content: ''; flex: 1; width: 1px; min-height: 0; margin-bottom: 8px; background: linear-gradient(to top, var(--trait) 0%, var(--filet) 45%, transparent 100%); }
.tl-row:first-child .tl-badge-col::before { background: none; }
.tl-line { min-height: 0; margin-top: 8px; background: linear-gradient(to bottom, var(--trait) 0%, var(--filet) 45%, transparent 100%); }
.tl-row:last-child .tl-badge-col::after { content: ''; flex: 1; margin-top: 8px; }

/* Accueil : « Nos métiers » sur cinq cartes, trois puis deux (8 nov., 17 h 19) */
.card-grid-5 { display: grid; grid-template-columns: repeat(6, 1fr); max-width: 1000px; margin: 0 auto; }
.card-grid-5 > div { position: relative; padding: 30px 26px; text-align: center; }
.card-grid-5 .card-photo { max-width: 100%; }
.card-grid-5 > div.g5-sep::after { content: ''; position: absolute; right: 0; top: 12%; bottom: 12%; width: 1px; background: linear-gradient(to bottom, transparent, var(--trait) 50%, transparent); }
.card-grid-5 > div.g5-rule { grid-column: 1 / -1; height: 1px; padding: 0; margin: 8px 0; background: linear-gradient(to right, transparent 3%, var(--trait) 30%, var(--trait) 70%, transparent 97%); }
.card-grid-5 .g5-rule img { position: absolute; left: 50%; top: 50%; width: 30px; transform: translate(-50%, -50%); background: var(--beige-soutenu); padding: 0 8px; box-sizing: content-box; }
@media (min-width: 721px) and (max-width: 1060px) { .card-grid-5 > div { padding: 26px 10px; } .card-grid-5 .card-title { font-size: 18px; } }
@media (max-width: 720px) {
  .card-grid-5 { grid-template-columns: 1fr; }
  .card-grid-5 > div { grid-column: auto !important; }
  .card-grid-5 > div.g5-sep::after, .card-grid-5 > div.g5-rule { display: none; }
  .card-grid-5 > div + div { border-top: 1px solid var(--filet); }
}

/* Groupe de mots à garder sur une même ligne, et listes sans mot isolé en fin de point */
.nowrap { white-space: nowrap; }
.k-list li, .prose p, .intro-text { text-wrap: pretty; }

/* Introduction des pages métiers en chapô : première phrase mise en avant, trait or, puis la précision (option B, 8 nov., 17 h 43) */
.section .intro-text { font-size: 18px; max-width: 780px; }
.intro-first { display: block; font-size: 24px; line-height: 1.5; color: var(--vert); margin-bottom: 16px; text-wrap: balance; }
.intro-first::after { content: ''; display: block; width: 64px; height: 1px; margin: 16px auto 0; background: linear-gradient(to right, transparent, var(--or), transparent); }
@media (max-width: 720px) { .section .intro-text { font-size: 17px; } .intro-first { font-size: 21px; } }
