/* FISCOGEF Expertise — mise en page. Couleurs et polices : variables ci-dessous. */
:root {
  --bleu: #0a5a9c;
  --marine: #0b2a4a;
  --rouge: #e30722;
  --rouge-fonce: #c20519;
  --fond: #ffffff;
  --fond2: #f2f6fa;
  --texte: #1b2a3b;
  --doux: #5a6b7d;
  --ligne: #dbe4ee;
  --rayon: 16px;
  --ombre: 0 10px 30px rgba(11, 42, 74, .10);
  --police: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--police); color: var(--texte); background: var(--fond); line-height: 1.6; -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; }
a { color: var(--bleu); }
h1, h2, h3 { line-height: 1.15; margin: 0; color: var(--marine); }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: 600 15px/1 var(--police); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-rouge { background: var(--rouge); color: #fff; box-shadow: 0 8px 20px rgba(227, 7, 34, .3); }
.btn-rouge:hover { background: var(--rouge-fonce); }
.btn-clair { background: #fff; color: var(--marine); }
.btn-clair-bord { border-color: var(--bleu); color: var(--bleu); background: transparent; }
.btn-grand { min-height: 54px; padding: 15px 32px; font-size: 16px; }

/* Bandeau du haut */
.topbar { background: var(--marine); color: #cfe0f1; font-size: 12.5px; }
.topbar-in { display: flex; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.topbar p { margin: 0; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }

/* En-tête */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ligne); }
.navbar { display: flex; align-items: center; justify-content: space-between; min-height: 70px; }
.logo img { display: block; height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--marine); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { border-color: var(--rouge); }
.nav-cta { min-height: 42px; padding: 10px 20px; font-size: 14px; }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span:not(.sr) { width: 24px; height: 2.5px; background: var(--marine); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Accueil */
.hero { background: linear-gradient(135deg, var(--marine) 0%, #0d4478 55%, var(--bleu) 100%); color: #fff; overflow: hidden; position: relative; }
.hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, .05); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 30px; padding-top: 56px; padding-bottom: 64px; position: relative; z-index: 1; }
.pastille { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.hero h1 { color: #fff; font-weight: 800; }
.hero h1 span { display: block; }
.h1-a, .h1-c { font-size: clamp(22px, 4.6vw, 34px); font-weight: 600; }
.h1-b { font-size: clamp(34px, 7.6vw, 62px); letter-spacing: -.01em; text-transform: uppercase; }
.h1-d { font-size: clamp(44px, 10.4vw, 86px); text-transform: uppercase; color: #fff; background: var(--rouge); display: inline-block !important; padding: 0 .18em; border-radius: 10px; margin-top: 4px; letter-spacing: -.01em; }
.hero-lead { margin: 22px 0 14px; font-size: 18px; color: #dbe9f7; }
.hero-liste { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 9px; }
.hero-liste li { position: relative; padding-left: 30px; font-size: 15.5px; }
.hero-liste li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--rouge) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visuel { display: flex; justify-content: center; }
.doc { width: min(360px, 100%); height: auto; filter: drop-shadow(0 24px 36px rgba(0, 0, 0, .35)); transform: rotate(3deg); }

/* Sections */
.sec { padding: 72px 0; }
.sec-fond { background: var(--fond2); }
.sec-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.sur { margin: 0 0 8px; color: var(--rouge); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.sec h2, .appel h2 { font-size: clamp(26px, 4.4vw, 38px); font-weight: 700; }

.cartes { display: grid; gap: 20px; }
.cartes-4 { grid-template-columns: repeat(4, 1fr); }
.carte { background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 26px 22px; box-shadow: var(--ombre); position: relative; transition: transform .2s, box-shadow .2s; }
.carte:hover { transform: translateY(-4px); }
.carte .ico { width: 54px; height: 54px; border-radius: 14px; background: #e6f0f9; display: grid; place-items: center; margin-bottom: 16px; }
.carte .ico svg { width: 28px; height: 28px; fill: none; stroke: var(--bleu); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.carte h3 { font-size: 18px; margin-bottom: 8px; }
.carte p { margin: 0; color: var(--doux); font-size: 15px; }
.carte a.carte-lien { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 14px; }
.badge { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #fff3d6; color: #8a5a00; }
.carte.a-confirmer { border-style: dashed; box-shadow: none; }

/* Étapes */
.etapes { list-style: none; counter-reset: e; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.etapes li { counter-increment: e; background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 24px 22px 24px 82px; position: relative; }
.etapes li::before { content: counter(e); position: absolute; left: 22px; top: 22px; width: 44px; height: 44px; border-radius: 50%; background: var(--rouge); color: #fff; font-weight: 700; font-size: 20px; display: grid; place-items: center; }
.etapes h3 { font-size: 18px; margin-bottom: 6px; }
.etapes p { margin: 0; color: var(--doux); font-size: 15px; }

/* Appel à l'action */
.appel { background: var(--bleu); color: #fff; padding: 44px 0; }
.appel h2 { color: #fff; font-size: clamp(22px, 3.6vw, 30px); }
.appel p { margin: 8px 0 0; color: #dbe9f7; }
.appel-in { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }

/* FAQ */
.faq-wrap { max-width: 800px; }
.faq details { background: #fff; border: 1px solid var(--ligne); border-radius: 14px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 600; color: var(--marine); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--rouge); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--doux); }

/* Contact */
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-infos h2 { margin-bottom: 22px; }
.coord { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
.coord li { display: flex; gap: 14px; align-items: flex-start; }
.coord svg { flex: none; width: 24px; height: 24px; margin-top: 3px; fill: none; stroke: var(--rouge); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.coord a { color: var(--marine); font-weight: 600; text-decoration: none; }
.coord a:hover { text-decoration: underline; }
.form { background: #fff; border: 1px solid var(--ligne); border-radius: 20px; padding: 28px; box-shadow: var(--ombre); display: grid; gap: 14px; }
.form h3 { font-size: 20px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 14px; color: var(--marine); }
.form input, .form select, .form textarea { font: 400 16px var(--police); padding: 12px 14px; border: 1.5px solid var(--ligne); border-radius: 12px; background: #fff; color: var(--texte); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(10, 90, 156, .18); }
.form-note { margin: 0; font-size: 13px; color: var(--doux); }

/* Pied de page */
.footer { background: var(--marine); color: #cfe0f1; padding: 40px 0 28px; font-size: 14px; }
.footer-in { display: grid; grid-template-columns: auto 1fr; gap: 20px 28px; align-items: center; }
.footer-logo { height: 84px; width: auto; background: #fff; border-radius: 12px; padding: 6px 10px; }
.footer p { margin: 2px 0; }
.footer-nom { font-weight: 700; color: #fff; font-size: 17px; }
.footer-bas { grid-column: 1 / -1; padding-top: 18px; margin-top: 8px !important; border-top: 1px solid rgba(255, 255, 255, .15); }
.footer a { color: #fff; }

/* Bouton WhatsApp flottant */
.wa-flottant { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); z-index: 60; transition: transform .15s; }
.wa-flottant:hover { transform: scale(1.07); }
.wa-flottant svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Animations (seulement transform et opacity ; rien si « réduire les animations ») */
.anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0ms); }
.anim .reveal.is-in { opacity: 1; transform: none; }
.anim .hero-texte > * { animation: monte .7s ease both; }
.anim .hero-texte > *:nth-child(2) { animation-delay: .08s; }
.anim .hero-texte > *:nth-child(3) { animation-delay: .16s; }
.anim .hero-texte > *:nth-child(4) { animation-delay: .24s; }
.anim .hero-texte > *:nth-child(5) { animation-delay: .32s; }
@keyframes monte { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Tablette */
@media (max-width: 980px) {
  .cartes-4 { grid-template-columns: repeat(2, 1fr); }
  .etapes { grid-template-columns: 1fr; }
  .contact-in { grid-template-columns: 1fr; }
}
/* Téléphone */
@media (max-width: 820px) {
  .menu-btn { display: flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--ligne); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; display: none; box-shadow: 0 16px 24px rgba(11, 42, 74, .12); }
  .nav.ouvert { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--ligne); }
  .nav-cta { margin-top: 14px; }
  .hero-in { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 48px; }
  .hero-visuel { order: -1; }
  .doc { width: 200px; transform: rotate(2deg); margin-bottom: -4px; }
  .topbar-in p:first-child { font-size: 11.5px; }
}
@media (max-width: 560px) {
  .cartes-4 { grid-template-columns: 1fr; }
  .sec { padding: 52px 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-in { grid-template-columns: 1fr; }
  .form { padding: 22px 18px; }
  .appel-in .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
