html, body { margin: 0; padding: 0; }
* { box-sizing: border-box; }
input, textarea, select, button { font-family: inherit; }
.fd { font-family: var(--font-display), 'Big Shoulders Display', sans-serif; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ============ Site vitrine ============ */
html:has(.site) { background: #0d1b33; scroll-behavior: smooth; }
.site { font-family: var(--font-body), 'Manrope', sans-serif; color: #0d1b33; min-height: 100vh; position: relative; z-index: 0; }
.site section[id] { scroll-margin-top: 90px; }
.site a { color: #c9a24a; text-decoration: none; }
.site a:hover { color: #dbb865; }

.site .nav-a { color: #e6e8ea; }
.site .nav-a:hover { color: #c9a24a; }
.site .btn-gold { background: #c9a24a; color: #0d1b33; transition: background .15s; }
.site .btn-gold:hover { background: #dbb865; color: #0d1b33; }
.site .btn-line { border: 1px solid #34507f; color: #fff; }
.site .btn-line:hover { border-color: #c9a24a; color: #fff; }
.site .btn-navy { background: #0d1b33; color: #fff; }
.site .btn-navy:hover { background: #c9a24a; color: #0d1b33; }
.site .round-line { border: 1px solid #34507f; background: transparent; color: #fff; }
.site .round-line:hover { border-color: #c9a24a; color: #c9a24a; }
.site .svc-card { background: rgba(13,27,51,0.55); border: 1px solid #1f3358; transition: background .2s, border-color .2s; }
.site .svc-card:hover { background: rgba(20,38,74,0.85); border-color: #c9a24a; }
.site .team-prev { border: 1px solid #0d1b33; background: transparent; color: #0d1b33; }
.site .team-prev:hover { background: #0d1b33; color: #fff; }
.site .team-next { border: 1px solid #0d1b33; background: #0d1b33; color: #fff; }
.site .team-next:hover { background: #c9a24a; border-color: #c9a24a; color: #0d1b33; }
.site .team-track { scrollbar-width: none; }
.site .team-track::-webkit-scrollbar { display: none; }
.site .field { background: #14264a; border: 1px solid #263c66; border-radius: 14px; color: #fff; padding: 16px; font-size: 16px; outline: none; width: 100%; min-width: 0; }
.site .field::placeholder { color: #8796b0; }
.site .field:focus { border-color: #c9a24a; }
.site .btn-reset { background: transparent; border: 1px solid #34507f; color: #fff; }
.site .btn-reset:hover { border-color: #c9a24a; }
.site .field-light { background: #faf9f6; border: 1px solid #cfc8bb; border-radius: 14px; color: #0d1b33; padding: 16px; font-size: 16px; outline: none; width: 100%; min-width: 0; }
.site .field-light::placeholder { color: #8b8f95; }
.site .field-light:focus { border-color: #c9a24a; }
.site .btn-reset-light { background: transparent; border: 1px solid #cfc8bb; color: #0d1b33; }
.site .btn-reset-light:hover { border-color: #c9a24a; }
.site .foot-a { color: #a9b6cc; }
.site .foot-a:hover { color: #c9a24a; }
.site .plain-a { color: inherit; }
.site .plain-a:hover { color: #8a6a1f; }

.site .wa-btn { position: fixed; right: 24px; bottom: 24px; z-index: 30; width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 40px rgba(8,19,39,0.3); transition: transform .2s, background .2s; }
.site .wa-btn:hover { background: #1ebe5b; transform: scale(1.06); }
.site .wa-btn:focus-visible { outline: 3px solid #c9a24a; outline-offset: 3px; }
@media (max-width: 819.98px) { .site .wa-btn { right: 16px; bottom: 16px; width: 56px; height: 56px; } }
@media print { .site .wa-btn { display: none; } }
.site .to-top { position: fixed; right: 30px; bottom: 100px; z-index: 30; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #c9a24a; background: #0d1b33; color: #c9a24a; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.3); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, background .2s, color .2s; }
.site .to-top.show { opacity: 1; visibility: visible; transform: none; }
.site .to-top:hover { background: #c9a24a; color: #0d1b33; }
.site .to-top:focus-visible { outline: 3px solid #c9a24a; outline-offset: 3px; }
@media (max-width: 819.98px) { .site .to-top { right: 20px; bottom: 84px; width: 46px; height: 46px; } }
@media print { .site .to-top { display: none; } }

.site .only-mobile { display: none !important; }
@media (max-width: 819.98px) {
  .site .only-desktop { display: none !important; }
  .site .only-mobile { display: flex !important; }
}

/* Pages légales */
.legal { background: #f3f1ec; color: #0d1b33; }
.legal h2 { font-family: var(--font-display), sans-serif; font-weight: 800; font-size: 26px; text-transform: uppercase; margin: 36px 0 10px; }
.legal p, .legal li { color: #4d535a; font-size: 16px; line-height: 1.7; }
.legal a { color: #8a6a1f; }


/* Version PHP : états pilotés par site.js */
.site #menu-mobile.is-closed { display: none !important; }
html { scroll-behavior: smooth; }

/* Zoom désactivé (double-tap) */
html, body { touch-action: pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Mobile : aucune glissade latérale ni effet élastique laissant voir l'image de fond */
html { overflow-x: hidden; overscroll-behavior: none; }
body { overscroll-behavior: none; }
.site { overflow-x: clip; }
.site .team-track { touch-action: pan-x pan-y; overscroll-behavior-x: contain; }

/* Articles */
.site .art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.site a.art-card { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid #e4dfd5; border-radius: 20px; padding: 14px 14px 24px; color: #0d1b33; transition: border-color .2s, transform .2s, box-shadow .2s; }
.site a.art-card:hover { color: #0d1b33; border-color: #c9a24a; transform: translateY(-3px); box-shadow: 0 16px 40px rgba(8,19,39,0.08); }
.site .art-img { aspect-ratio: auto; border-radius: 14px; overflow: hidden; background: #ddd8ce; }
.site .art-img img { display: block; width: 100%; height: auto; }
.site .art-img .art-ph { aspect-ratio: 16/10; }
.site .art-ph { display: block; width: 100%; height: 100%; background: #0d1b33 url('../logo-altaris-transparent.png') center / 30% no-repeat; }
.site .art-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 0 8px; color: #8a6a1f; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.site .art-card h3 { margin: 0; padding: 0 8px; font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; font-size: 28px; line-height: 1.05; text-transform: uppercase; text-wrap: balance; }
.site .art-card p { margin: 0; padding: 0 8px; color: #4d535a; line-height: 1.65; font-size: 15px; }
.site .art-more { margin-top: auto; padding: 4px 8px 0; color: #8a6a1f; font-weight: 700; font-size: 14px; }

.site .prose { color: #2c3138; font-size: 18px; line-height: 1.8; overflow-wrap: break-word; }
.site .prose > :first-child { margin-top: 0; }
.site .prose p { margin: 0 0 1.3em; }
.site .prose h2 { font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.05; text-transform: uppercase; color: #0d1b33; margin: 1.6em 0 .6em; }
.site .prose h3 { font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; font-size: clamp(24px, 3vw, 28px); text-transform: uppercase; color: #0d1b33; margin: 1.4em 0 .5em; }
.site .prose ul, .site .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.site .prose li { margin: .35em 0; }
.site .prose li::marker { color: #c9a24a; font-weight: 800; }
.site .prose a { color: #8a6a1f; text-decoration: underline; }
.site .prose a:hover { color: #0d1b33; }
.site .prose strong { color: #0d1b33; }
.site .prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid #c9a24a; font-family: 'Big Shoulders Display', sans-serif; font-weight: 700; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; color: #0d1b33; }
.site .prose figure { margin: 2em 0; }
.site .prose figure img { display: block; width: 100%; height: auto; border-radius: 16px; }
.site .prose figcaption { margin-top: 10px; font-size: 14px; color: #5a5f66; text-align: center; }

/* Formulaire de devis : champs avec libellé visible (date, durée) */
.site .field-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.site .field-label { color: #a9b6cc; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.site .field[type="date"] { color-scheme: dark; min-height: 56px; }
.site select.field { appearance: none; -webkit-appearance: none; padding-right: 44px; min-height: 56px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23c9a24a' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.site select.field:invalid { color: #8796b0; }
.site select.field option { color: #fff; background: #14264a; }

/* La direction : photos côte à côte, empilées sur très petits écrans */
@media (max-width: 380px) { .site .leaders { grid-template-columns: 1fr !important; } }

/* Mobile : cibles tactiles et lecture */
@media (max-width: 819.98px) {
  .site #menu-mobile a { min-height: 48px; display: flex; align-items: center; }
  .site .foot-a { padding: 6px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html, .site * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.site #menu-mobile { max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 820px) { .site .dir-lead { position: sticky; top: 130px; align-self: start; } }

/* Pied de page mobile : 2 colonnes (présentation et contact sur toute la largeur) */
@media (max-width: 819.98px) {
  .site .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 32px 20px !important; }
  .site .foot-grid > :first-child, .site .foot-grid > :last-child { grid-column: 1 / -1; }
}

/* Accueil : quand la bannière passe sur une colonne, l'image vient avant le texte */
@media (max-width: 1015.98px) {
  .site .hero-grid { gap: 36px !important; }
  .site .hero-media { order: -1; }
}

/* Flèches du diaporama posées sur la photo */
.site .hero-arrow { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(201,162,74,0.85); background: rgba(13,27,51,0.6); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .15s, color .15s; }
.site .hero-arrow:hover { background: #c9a24a; color: #0d1b33; }
.site .hero-arrow:focus-visible { outline: 3px solid #c9a24a; outline-offset: 2px; }
.site .hero-arrow-prev { left: 14px; }
.site .hero-arrow-next { right: 14px; }
@media (max-width: 819.98px) { .site .hero-arrow { width: 42px; height: 42px; } .site .hero-arrow-prev { left: 10px; } .site .hero-arrow-next { right: 10px; } }

/* Équipe : toutes les photos au même format (3/4), cadrées vers le haut pour garder les visages */
.site .team-photo img { object-position: center 20%; }

/* Réseaux sociaux (en-tête, menu mobile, pied de page) */
.soc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.soc-a { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; transition: color .2s, background-color .2s, border-color .2s; }
.soc-top { gap: 4px; }
.soc-top .soc-a { width: 28px; height: 28px; color: #a9b6cc; }
.soc-top .soc-a svg { width: 16px; height: 16px; }
.soc-top .soc-a:hover { color: #c9a24a; }
.soc-menu { gap: 12px; padding-top: 20px; }
.soc-menu .soc-a, .soc-foot .soc-a { width: 44px; height: 44px; border: 1px solid #34507f; color: #fff; }
.soc-foot .soc-a { width: 40px; height: 40px; color: #a9b6cc; }
.soc-menu .soc-a:hover, .soc-foot .soc-a:hover { color: #0d1b33; background: #c9a24a; border-color: #c9a24a; }
