/* =========================================================
   NEFTY — habillage du thème (chargé après front.css)
   Reprend le gabarit de template/ : bleu ardoise #24353F,
   orange #EE732C, Sora pour les titres, Inter pour le texte.
   Les jetons de front.css sont redéfinis ici ; le reste adapte
   l'en-tête, les boutons, les bandeaux et le pied de page.
   ========================================================= */

:root {
  --accent: #EE732C;
  --accent-d: #D8621C;
  --dark: #24353F;
  --dark-2: #1A2830;
  --bg: #F6F5F2;
  --voile: 26, 40, 48;

  --couleur-primaire: #D8621C;
  --couleur-primaire-fonce: #B8501A;
  --couleur-primaire-pale: #FBEBE0;
  --couleur-accent: #EE732C;
  --couleur-texte: #24353F;
  --couleur-texte-doux: #6B7A82;
  --couleur-bordure: #E4E2DC;
  --fond: #ffffff;
  --fond-alt: #ECEAE5;
  --fond-sombre: #24353F;
  --texte-sur-sombre: #B7C2C8;
  --info-pale: #FBEBE0;

  --police-titre: Sora, system-ui, sans-serif;
  --police-texte: Inter, system-ui, sans-serif;
  --rayon: 14px;
  --rayon-petit: 10px;
  --ombre: 0 10px 30px rgba(36, 53, 63, .08);
  --largeur: 1500px;
  --largeur-texte: 820px;
  --espace-section: clamp(56px, 8vw, 110px);
  --hauteur-entete: 92px;
}

body { background: var(--bg); }
h1, h2, h3, h4 { font-weight: 600; color: var(--dark); }
.wrap, .container { max-width: none; width: min(1500px, 100% - 32px); padding: 0; }
.wrap-narrow { max-width: none; width: min(900px, 100% - 32px); }
.section-alt { background: var(--fond-alt); }
.section-head h2::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 14px; border-radius: 2px; background: var(--accent); }
.section-head p { color: var(--couleur-texte-doux); }

/* ---------- Boutons ---------- */
.btn { border: 0; border-radius: 10px; min-height: 50px; padding: 10px 26px; font: 600 15px/1.2 Sora, sans-serif; transition: .25s; }
.btn-primary, .btn-light { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--dark); color: #fff; }
.btn-light:hover { background: #fff; color: var(--dark); }
.btn-outline, .btn-secondary { background: transparent; box-shadow: inset 0 0 0 2px var(--dark); color: var(--dark); }
.btn-outline:hover, .btn-secondary:hover { background: var(--dark); color: #fff; }
.btn-ghost, .btn-ghost-light { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); color: #fff; backdrop-filter: blur(8px); }
.btn-ghost:hover, .btn-ghost-light:hover { background: #fff; color: var(--dark); }
/* Bouton à pastille-flèche (gabarit) */
.btn i { width: 38px; height: 38px; margin: 0; border-radius: 8px; background: var(--dark); color: var(--accent); display: grid; place-items: center; font-style: normal; transition: .25s; }
.btn:has(i) { padding: 6px 6px 6px 22px; gap: 12px; }
.btn:hover i { transform: rotate(-45deg); }
.btn.sombre { background: var(--dark); color: #fff; }
.btn.sombre i { background: var(--accent); color: #fff; }
.btn.sombre:hover { background: var(--accent); }

.link { font-family: Sora, sans-serif; color: var(--dark); }
.link::after { content: "→"; display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 6px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; transition: .25s; }
.link:hover { text-decoration: none; }
.link:hover::after { transform: translateX(4px); }
.link-back::after { content: none; }
.tag { background: none; padding: 0; border-radius: 0; display: inline-flex; align-items: center; gap: 8px; color: var(--dark); font: 600 13px/1.4 Sora, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

/* ---------- En-tête : par-dessus le bandeau, plein au défilement ---------- */
.site-header { position: fixed; left: 0; right: 0; top: 0; background: transparent; border-bottom: 1px solid rgba(255, 255, 255, .12); backdrop-filter: none; transition: background .25s; }
.site-header.fixe { background: rgba(36, 53, 63, .97); }
.nav { min-height: var(--hauteur-entete); }
.brand img { width: auto; height: 44px; }
.menu-links { gap: 30px; }
@media (min-width: 901px) { .menu { display: contents; } }
.menu-links > a, .dd-toggle { padding: 8px 0; color: #fff; font-size: 15px; font-weight: 500; border-radius: 0; }
.menu-links > a:hover, .dd-toggle:hover { background: none; color: var(--accent); }
.dd-caret { font-size: 8px; opacity: .6; margin-left: 4px; }
.menu .nav-cta { margin-left: 6px; padding: 8px 22px; color: #fff; }
.menu .nav-cta:hover { background: #fff; color: var(--dark); }
.has-dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 24px; }
.dropdown-menu { top: calc(100% + 22px); left: -16px; min-width: 260px; padding: 10px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .18); }
.dropdown-menu a { padding: 9px 12px; border-radius: 8px; color: var(--dark); font-size: 14px; font-weight: 600; }
.dropdown-menu a:hover { background: rgba(238, 115, 44, .10); color: var(--accent); }
.dropdown-menu a.deep { padding-left: 26px; font-weight: 500; opacity: .8; }
.menu-links > .has-dropdown:last-of-type .dropdown-menu { left: auto; right: -16px; }
.hamb { border-color: rgba(255, 255, 255, .4); background: transparent; }
.hamb span, .hamb span::before, .hamb span::after { background: #fff; }

/* ---------- Bandeaux (accueil et pages intérieures) ---------- */
.hero, .page-hero {
  position: relative; overflow: hidden; border: 0; color: #D5DDE1;
  background: var(--dark) url("../img/hero.jpg") center / cover no-repeat;
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(var(--voile), .92) 0%, rgba(var(--voile), .7) 55%, rgba(var(--voile), .35) 100%);
}
.hero > .wrap, .page-hero > .wrap { position: relative; z-index: 2; }
.hero--media { background-image: none; }
.hero-media { z-index: 0; }
.hero-media::after { display: none; }
.hero { padding: clamp(150px, 16vw, 220px) 0 clamp(150px, 16vw, 260px); }
.page-hero { padding: clamp(140px, 14vw, 190px) 0 clamp(56px, 7vw, 100px); }
.hero h1, .page-hero h1 { color: #fff; font-size: clamp(34px, 4.8vw, 62px); max-width: 860px; margin-bottom: 20px; }
.hero h1 em { color: var(--accent); }
.hero-lead, .page-hero .lead, .page-hero-sub { color: #D5DDE1; font-size: 17px; max-width: 680px; opacity: 1; }
.page-hero .actions, .hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 30px; }
.breadcrumb { color: #B7C2C8; font-size: 14px; margin-bottom: 22px; }
.breadcrumb a { color: #B7C2C8; }
.breadcrumb a:hover { color: var(--accent); }
.page-hero .meta { color: #B7C2C8; }
.page-hero--error { text-align: left; }

/* ---------- Contenu ---------- */
.rich { max-width: none; font-size: 16.5px; }
.rich h2 { margin-top: 1.8em; font-size: clamp(26px, 3vw, 36px); }
.rich h2:first-child { margin-top: 0; }
.rich ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.rich ul li { display: flex; gap: 12px; color: var(--dark); margin: 0; }
.rich ul li::before { content: "✓"; flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.rich a { color: var(--accent-d); font-weight: 600; }
.rich blockquote { border-left-color: var(--accent); }
.rich mark { background: rgba(238, 115, 44, .16); color: var(--dark); border-radius: 4px; padding: 0 4px; }
.rich ol { counter-reset: e; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.rich ol li { counter-increment: e; background: #fff; border-radius: var(--rayon); padding: 26px; margin: 0; color: var(--dark); font-weight: 500; }
.rich ol li::before { content: counter(e, decimal-leading-zero); display: block; font: 700 34px/1 Sora, sans-serif; color: var(--accent); margin-bottom: 12px; }
.child-cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.child-card { background: #fff; padding: 20px 22px; font-family: Sora, sans-serif; color: var(--dark); transition: .2s; }
.child-card:hover { border-color: var(--accent); color: var(--dark); }
.child-card-arrow { color: var(--accent); }

/* ---------- Cartes, FAQ, formulaires ---------- */
.card { background: #fff; box-shadow: none; border-color: var(--couleur-bordure); }
a.card:hover { border-color: var(--accent); }
.card-num { background: var(--accent); color: #fff; border-radius: 12px; }
.faq-q { background: #fff; }
.faq-q[open] { border-color: var(--accent); }
.faq-q summary { font-family: Sora, sans-serif; color: var(--dark); }
.faq-q summary::after { color: var(--accent); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(238, 115, 44, .18); }
.filter-btn.active, .filter-btn:hover, .page-btn.active { background: var(--dark); border-color: var(--dark); }
.sidebar-cta { background: var(--dark); }

/* ---------- Appel à l'action ---------- */
.cta-band { padding: 0; background: none; text-align: left; }
.cta-box {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 60px); border-radius: 28px; color: #B7C2C8;
  background: linear-gradient(rgba(26, 40, 48, .86), rgba(26, 40, 48, .86)), var(--dark) url("../img/hero.jpg") center / cover;
}
.cta-box h2 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); margin: 0; }
.cta-box .right { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.cta-contact b { display: block; color: #fff; font: 600 22px/1.3 Sora, sans-serif; }
.cta-contact { color: #B7C2C8; }
.cta-wrap { padding: 0 0 var(--espace-section); }
.cta-wrap .wrap { }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: 0; padding-top: 40px; background: var(--dark); font-size: 15px; }
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 50px; padding-top: 50px; padding-bottom: 60px; }
.foot-logo img { height: 44px; width: auto; }
.foot-logo + p { margin-top: 20px; }
.foot-title { font: 600 18px/1.3 Sora, sans-serif; text-transform: none; letter-spacing: 0; margin-bottom: 22px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer li { margin: 0; }
.site-footer .social-links a { border: 1px solid rgba(255, 255, 255, .2); background: none; color: #fff; width: 40px; height: 40px; }
.site-footer .social-links a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.foot-bottom { border-top-color: rgba(255, 255, 255, .1); padding: 26px 0; font-size: 14px; color: #B7C2C8; }

#rgpd-banner:not([hidden]) { background: var(--dark); }

@media (max-width: 1024px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-box { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .menu-links { display: contents; }
  .menu { background: var(--dark); border-bottom: 1px solid rgba(255, 255, 255, .12); gap: 2px; padding-top: 16px; }
  .menu-links > a, .dd-toggle { padding: 12px 0; }
  .dropdown-menu { position: static; background: transparent; box-shadow: none; padding: 0 0 8px 14px; }
  .dropdown-menu a { color: #D5DDE1; }
  .has-dropdown::after { display: none; }
  .menu .nav-cta { margin: 10px 0 0; }
}
@media (max-width: 600px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .brand img { height: 38px; }
}

/* Le gabarit ne souligne aucun lien hors du texte rédigé. */
.metier a, .site-header a, .site-footer a, .cta-box a, .breadcrumb a { text-decoration: none; }

/* ---------- Bouton d'appel flottant (toutes les pages) ---------- */
.appel-flottant { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; align-items: center; height: 64px; border-radius: 999px; background: var(--accent); color: #fff; box-shadow: 0 14px 34px rgba(238, 115, 44, .45); text-decoration: none; transition: background .25s, box-shadow .25s; }
.appel-flottant:hover, .appel-flottant:focus-visible { background: var(--accent-d); color: #fff; }
.af-ico { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.af-ico svg { width: 26px; height: 26px; }
.af-ico::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: onde 2.4s ease-out infinite; }
@keyframes onde { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
.af-txt { max-width: 0; overflow: hidden; white-space: nowrap; font: 700 17px/1.15 Sora, sans-serif; transition: max-width .35s ease, padding .35s ease; }
.af-txt small { display: block; font: 500 12px/1.3 Inter, sans-serif; opacity: .9; }
.appel-flottant:hover .af-txt, .appel-flottant:focus-visible .af-txt { max-width: 240px; padding-right: 16px; }
@media (max-width: 640px) { .appel-flottant { right: 16px; bottom: 16px; height: 56px; } .af-ico { width: 56px; height: 56px; } }
@media (prefers-reduced-motion: reduce) { .af-ico::before { animation: none; opacity: 0; } }
