@import url('https://fonts.googleapis.com/css2?family=Literata:opsz,wght@7..72,400;7..72,600;7..72,800&family=Atkinson+Hyperlegible:wght@400;700&display=swap');

:root {
  --bleu: #5B7B8C;
  --blanc: #FFFFFF;
  --encre: #1F2428;
  --sable: #EDE6DA;
  --alerte: #B3453C;
  --ligne: rgba(31,36,40,.72);
  --max: 1280px;
  --marge: clamp(1.25rem, 4vw, 4rem);
  --titre: 'Literata', serif;
  --texte: 'Atkinson Hyperlegible', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--blanc); color: var(--encre); font-family: var(--texte); font-size: 19px; line-height: 1.62; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.saut { position: fixed; z-index: 100; top: -5rem; left: 1rem; padding: .8rem 1rem; background: var(--encre); color: var(--blanc); border: 1px solid var(--encre); transition: top .2s ease, background .2s ease; }
.saut:focus { top: 1rem; background: var(--alerte); }

.bande-aide { min-height: 44px; padding: .45rem var(--marge); background: var(--encre); color: var(--blanc); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .9rem; }
.bande-aide a { color: var(--blanc); font-weight: 700; transition: color .2s ease, text-decoration-color .2s ease; }
.bande-aide a:hover { color: var(--sable); text-decoration-color: var(--sable); }
.entete { position: sticky; top: 0; z-index: 30; background: var(--blanc); border-bottom: 1px solid var(--encre); }
.entete-ligne { width: min(100%,var(--max)); min-height: 86px; margin: auto; padding: .7rem var(--marge); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1rem,3vw,3rem); }
.marque { font-family: var(--titre); font-size: clamp(1.35rem,2.2vw,2rem); font-weight: 800; line-height: 1; letter-spacing: -.025em; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.marque small { display: block; margin-top: .35rem; font-family: var(--texte); font-size: .68rem; font-weight: 400; letter-spacing: .15em; text-transform: uppercase; }
.marque:hover { color: var(--bleu); transform: translateY(-2px); }
.nav ul { margin: 0; padding: 0; list-style: none; display: flex; justify-content: flex-end; gap: clamp(.6rem,1.8vw,1.5rem); }
.nav a { min-height: 46px; display: flex; align-items: center; font-size: .86rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--alerte); border-color: var(--alerte); }
.appel-entete { min-height: 50px; padding: .7rem 1rem; border: 1px solid var(--alerte); color: var(--alerte); display: flex; align-items: center; font-weight: 700; text-decoration: none; transition: background .2s ease, color .2s ease; }
.appel-entete:hover { background: var(--alerte); color: var(--blanc); }
.menu-bouton { display: none; }

.hero { min-height: 75svh; padding: clamp(4rem,7vh,6rem) var(--marge) clamp(3rem,7vh,6rem); border-bottom: 1px solid var(--encre); background: var(--blanc); display: grid; grid-template-columns: repeat(12,1fr); align-content: start; gap: 1rem; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: 0; bottom: 0; width: 33%; height: 7px; background: var(--bleu); animation: respiration 6s ease-in-out infinite; }
.hero-contenu { grid-column: 1/10; align-self: start; }
.sur { margin: 0 0 1.2rem; color: var(--bleu); font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero h1, .page-haute h1 { max-width: 1120px; margin: 0; font-family: var(--titre); font-size: clamp(3.8rem,8vw,9rem); font-weight: 800; line-height: .92; letter-spacing: -.035em; }
.hero h1 em { color: var(--bleu); font-style: normal; }
.hero-intro { max-width: 760px; margin: 1.6rem 0; font-size: clamp(1.25rem,2vw,1.55rem); line-height: 1.45; }
.choix-entree { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.bouton, .bouton-clair { min-height: 54px; padding: .8rem 1.2rem; border: 1px solid var(--encre); display: inline-flex; align-items: center; justify-content: center; font-size: .86rem; font-weight: 700; letter-spacing: .13em; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: background .2s ease, color .2s ease; }
.bouton { background: var(--encre); color: var(--blanc); }
.bouton:hover { background: var(--bleu); color: var(--blanc); transform: translateY(-2px); }
.bouton-clair { background: var(--blanc); color: var(--encre); }
.bouton-clair:hover { background: var(--sable); color: var(--alerte); transform: translateY(-2px); }

.env { width: min(100%,var(--max)); margin-inline: auto; padding-inline: var(--marge); }
.section { padding-block: clamp(5rem,9vw,8.5rem); border-bottom: 1px solid var(--ligne); }
.tete-section { display: grid; grid-template-columns: repeat(12,1fr); gap: 1rem; align-items: end; margin-bottom: clamp(2.5rem,5vw,4.5rem); }
.tete-section h2, .titre-grand { grid-column: 1/9; margin: 0; font-family: var(--titre); font-size: clamp(2.9rem,5.8vw,6.6rem); font-weight: 800; line-height: .98; letter-spacing: -.03em; }
.tete-section > p { grid-column: 10/13; margin: 0; }
.bleu { color: var(--bleu); }

.essentiel { padding: 0; border-bottom: 1px solid var(--encre); }
.essentiel-grille { display: grid; grid-template-columns: 1.25fr .8fr .75fr 1.2fr; border-left: 1px solid var(--encre); }
.essentiel-grille > div { min-height: 190px; padding: 1.3rem; border-right: 1px solid var(--encre); display: flex; flex-direction: column; justify-content: space-between; }
.essentiel-grille > div:nth-child(2) { background: var(--bleu); color: var(--blanc); }
.essentiel-grille small { font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.essentiel-grille strong { font-family: var(--titre); font-size: clamp(1.5rem,2.6vw,2.4rem); line-height: 1.15; }
.essentiel-grille a { color: var(--alerte); font-weight: 700; transition: color .2s ease, transform .2s ease; }
.essentiel-grille a:hover { color: var(--encre); transform: translateX(3px); }

.chiffres { background: var(--sable); }
.ligne-chiffres { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--encre); border-left: 1px solid var(--encre); }
.chiffre { min-height: 230px; padding: 1.3rem; border-right: 1px solid var(--encre); border-bottom: 1px solid var(--encre); }
.chiffre b { display: block; margin-bottom: 1rem; color: var(--bleu); font-family: var(--titre); font-size: clamp(3rem,5vw,5.2rem); font-weight: 800; line-height: .9; }
.chiffre span { font-weight: 700; }

.services { background: var(--blanc); }
.grille-services { display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid var(--encre); border-left: 1px solid var(--encre); }
.service { min-height: 370px; padding: clamp(1.3rem,3vw,2.4rem); border-right: 1px solid var(--encre); border-bottom: 1px solid var(--encre); display: grid; grid-template-columns: 80px 1fr; gap: 1.2rem; align-content: start; transition: background .25s ease, color .25s ease; }
.service:hover { background: var(--sable); color: var(--encre); }
.service-num { font-family: var(--titre); font-size: 2.7rem; color: var(--bleu); }
.service h3 { margin: 0 0 .7rem; font-family: var(--titre); font-size: clamp(1.8rem,3vw,2.7rem); line-height: 1.1; }
.service .prix { display: block; margin-top: 1rem; font-weight: 700; color: var(--alerte); }
.service a { font-weight: 700; transition: color .2s ease, letter-spacing .2s ease; }
.service a:hover { color: var(--alerte); letter-spacing: .02em; }

.aides { background: var(--blanc); }
.instruction { margin: 0 0 1.2rem; color: var(--alerte); font-weight: 700; }
.accordeon { border-top: 1px solid var(--encre); }
.accordeon-item { border-bottom: 1px solid var(--encre); }
.accordeon-bouton { width: 100%; min-height: 90px; padding: 1rem 0; border: 0; background: transparent; display: grid; grid-template-columns: 90px 1fr auto; gap: 1rem; align-items: center; color: var(--encre); text-align: left; transition: color .2s ease, background .2s ease; }
.accordeon-bouton:hover, .accordeon-bouton[aria-expanded='true'] { color: var(--alerte); background: var(--sable); }
.accordeon-bouton span { font-family: var(--titre); font-size: 2rem; color: var(--bleu); }
.accordeon-bouton b { font-family: var(--titre); font-size: clamp(1.45rem,2.5vw,2.2rem); }
.accordeon-bouton::after { content: '+'; font-family: var(--titre); font-size: 2.5rem; transition: transform .2s ease, color .2s ease; }
.accordeon-bouton[aria-expanded='true']::after { transform: rotate(45deg); color: var(--alerte); }
.accordeon-contenu { padding: 1.2rem 8rem 2rem 6.6rem; border-top: 1px solid var(--ligne); }

.debord { display: grid; grid-template-columns: minmax(300px,.65fr) minmax(0,1.35fr); border-bottom: 1px solid var(--encre); }
.debord-texte { padding: clamp(3rem,7vw,8rem) var(--marge); display: flex; flex-direction: column; justify-content: center; }
.debord-texte h2 { margin: 0 0 1.4rem; font-family: var(--titre); font-size: clamp(3rem,5.8vw,6rem); line-height: .98; }
.debord-image { min-height: 700px; border-left: 1px solid var(--encre); background: repeating-linear-gradient(135deg,var(--sable) 0 10px,var(--blanc) 10px 20px); overflow: hidden; }
.debord-image img { width: 100%; height: 100%; min-height: 700px; object-fit: cover; filter: saturate(.8); transition: filter .55s ease, transform .7s ease; }
.debord-image:hover img { filter: saturate(1); transform: scale(1.025); }

.frise { background: var(--sable); }
.frise-etapes { display: grid; grid-template-columns: repeat(5,1fr); border-top: 1px solid var(--encre); }
.etape { min-height: 300px; padding: 1.2rem; border-right: 1px solid var(--encre); position: relative; }
.etape:last-child { border-right: 0; }
.etape::before { content: attr(data-numero); display: block; margin-bottom: 2rem; color: var(--bleu); font-family: var(--titre); font-size: 3rem; font-weight: 800; }
.etape h3 { font-family: var(--titre); font-size: 1.55rem; line-height: 1.2; }

.manifeste { background: var(--blanc); }
.manifeste-grille { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; align-items: start; }
.manifeste-phrase { margin: 0; font-family: var(--titre); font-size: clamp(3rem,6vw,6.3rem); font-weight: 600; line-height: 1; }
.manifeste-colonne { padding-top: 1rem; border-top: 1px solid var(--encre); }

.simulateur { background: var(--bleu); color: var(--blanc); }
.outil-simple { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr); border: 1px solid var(--encre); background: var(--blanc); color: var(--encre); }
.outil-champs { padding: clamp(1.4rem,4vw,3.3rem); border-right: 1px solid var(--encre); }
.champ { display: grid; gap: .45rem; margin-bottom: 1.2rem; }
.champ label { font-weight: 700; }
.champ select, .champ input, .champ textarea { width: 100%; min-height: 54px; padding: .7rem; border: 1px solid var(--encre); border-radius: 0; background: var(--blanc); color: var(--encre); transition: background .2s ease, outline-color .2s ease; }
.champ select:focus, .champ input:focus, .champ textarea:focus { outline: 3px solid var(--bleu); outline-offset: 2px; background: var(--sable); }
.outil-resultat { padding: clamp(1.4rem,4vw,3.3rem); background: var(--sable); display: flex; flex-direction: column; justify-content: center; }
.outil-resultat small { font-size: .78rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.grand-prix { margin: .7rem 0; color: var(--bleu); font-family: var(--titre); font-size: clamp(4.8rem,9vw,8.5rem); font-weight: 800; line-height: .85; transition: transform .25s ease, color .25s ease; }
.grand-prix.change { transform: scale(1.035); color: var(--alerte); }
.jauge { height: 22px; border: 1px solid var(--encre); background: var(--blanc); overflow: hidden; }
.jauge span { display: block; width: 50%; height: 100%; background: var(--bleu); animation: jauge 4s ease-in-out infinite alternate; }
.note { font-size: .9rem; line-height: 1.45; }

.negatif { min-height: 70svh; padding: var(--marge); background: var(--encre); color: var(--blanc); border-bottom: 7px solid var(--bleu); display: grid; place-items: center; }
.negatif blockquote { width: min(100%,1120px); margin: 0; font-family: var(--titre); font-size: clamp(3.4rem,7vw,7.5rem); line-height: 1; }
.negatif em { color: var(--sable); font-style: normal; }

.page-haute { padding: clamp(5rem,9vw,8rem) var(--marge); border-bottom: 1px solid var(--encre); background: var(--sable); }
.page-haute > * { width: min(100%,var(--max)); margin-left: auto; margin-right: auto; }
.page-haute p { max-width: 800px; font-size: 1.25rem; }
.contenu-page { padding-block: clamp(4rem,8vw,8rem); }
.grille-page { display: grid; grid-template-columns: repeat(12,1fr); gap: 1rem; align-items: start; }
.article { grid-column: 1/9; }
.article h2 { margin: 3rem 0 1rem; font-family: var(--titre); font-size: clamp(2.4rem,4.5vw,4.5rem); line-height: 1.05; }
.article h3 { margin: 2rem 0 .6rem; font-family: var(--titre); font-size: 1.8rem; line-height: 1.2; }
.encadre { grid-column: 10/13; position: sticky; top: 130px; padding: 1.25rem; border: 1px solid var(--encre); background: var(--sable); }
.encadre h2, .encadre h3 { margin-top: 0; font-family: var(--titre); }
.tableau { width: 100%; border-collapse: collapse; border: 1px solid var(--encre); }
.tableau th, .tableau td { padding: .9rem; border: 1px solid var(--encre); text-align: left; vertical-align: top; }
.tableau th { background: var(--encre); color: var(--blanc); font-family: var(--titre); font-size: 1.2rem; }
.tableau tr:nth-child(even) { background: var(--sable); }
.equipe { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--encre); border: 1px solid var(--encre); }
.personne { background: var(--blanc); }
.personne img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: saturate(.75); transition: filter .4s ease, transform .4s ease; }
.personne:hover img { filter: saturate(1); transform: scale(1.012); }
.personne div { padding: 1.2rem; }
.personne h3 { margin: 0; font-family: var(--titre); font-size: 1.8rem; }
.formulaire { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.formulaire .large { grid-column: 1/-1; }
.carte-zone { min-height: 540px; position: relative; border: 1px solid var(--encre); background: var(--sable); overflow: hidden; }
.carte-zone::before { content: ''; position: absolute; width: 58%; height: 72%; top: 14%; left: 20%; border: 1px solid var(--encre); background: var(--blanc); transform: rotate(-8deg); }
.carte-zone::after { content: ''; position: absolute; width: 20%; height: 28%; top: 37%; left: 40%; background: var(--bleu); animation: pulsation 3s ease-in-out infinite; }
.zone-liens { position: relative; z-index: 2; padding: 2rem; display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.zone-liens span { padding: .8rem; border: 1px solid var(--encre); background: var(--blanc); font-weight: 700; }

.pied { padding: clamp(4rem,7vw,6rem) var(--marge) 2rem; background: var(--encre); color: var(--blanc); }
.pied-grille { width: min(100%,var(--max)); margin: auto; display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 2.5rem; }
.pied h2, .pied h3 { margin-top: 0; font-family: var(--titre); }
.pied h2 { font-size: 3rem; line-height: 1; }
.pied ul { margin: 0; padding: 0; list-style: none; }
.pied li { margin-bottom: .55rem; }
.pied a { display: inline-block; transition: color .2s ease, transform .2s ease; }
.pied a:hover { color: var(--sable); transform: translateX(3px); }
.pied-fin { width: min(100%,var(--max)); margin: 3rem auto 0; padding-top: 1rem; border-top: 1px solid var(--bleu); display: flex; justify-content: space-between; gap: 1rem; font-size: .86rem; }
.contact-mobile { display: none; }
.rv { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.rv.visible { opacity: 1; transform: translateY(0); }
.rv:nth-child(2) { transition-delay: .08s; }
.rv:nth-child(3) { transition-delay: .16s; }
.rv:nth-child(4) { transition-delay: .24s; }

@keyframes respiration { from { width: 12%; } to { width: 42%; } }
@keyframes jauge { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
@keyframes pulsation { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes entree { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ligne { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 1120px) {
  .nav li:nth-child(4), .nav li:nth-child(5) { display: none; }
  .essentiel-grille, .ligne-chiffres { grid-template-columns: repeat(2,1fr); }
  .tete-section h2 { grid-column: 1/10; }
  .tete-section > p { grid-column: 10/13; }
  .frise-etapes { grid-template-columns: repeat(3,1fr); }
  .etape:nth-child(3) { border-right: 0; }
  .etape:nth-child(n+4) { border-top: 1px solid var(--encre); }
  .pied-grille { grid-template-columns: 1.4fr 1fr 1fr; }
  .pied-grille > :last-child { grid-column: 2/4; }
}

@media (max-width: 900px) {
  body { font-size: 18px; }
  .entete-ligne { grid-template-columns: 1fr auto auto; }
  .nav { position: fixed; inset: 130px 0 auto; padding: 1rem var(--marge); background: var(--blanc); border-bottom: 1px solid var(--encre); transform: translateY(-140%); visibility: hidden; transition: transform .3s ease, visibility .3s ease; }
  .nav.ouvert { transform: translateY(0); visibility: visible; }
  .nav ul { display: grid; grid-template-columns: repeat(2,1fr); }
  .nav li:nth-child(4), .nav li:nth-child(5) { display: list-item; }
  .nav a { border: 1px solid var(--encre); padding: .5rem; }
  .menu-bouton { min-height: 50px; min-width: 56px; border: 1px solid var(--encre); background: var(--blanc); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; transition: background .2s ease, color .2s ease; }
  .menu-bouton:hover { background: var(--bleu); color: var(--blanc); }
  .appel-entete { font-size: 0; min-width: 52px; justify-content: center; padding: 0; }
  .appel-entete::after { content: '☎'; font-size: 1.25rem; }
  .hero-contenu { grid-column: 1/13; }
  .tete-section h2, .tete-section > p { grid-column: 1/13; }
  .grille-services { grid-template-columns: 1fr; }
  .debord { grid-template-columns: 1fr; }
  .debord-image { min-height: 540px; border-left: 0; border-top: 1px solid var(--encre); }
  .debord-image img { min-height: 540px; }
  .manifeste-grille { grid-template-columns: 1fr 1fr; }
  .manifeste-phrase { grid-column: 1/-1; }
  .outil-simple { grid-template-columns: 1fr; }
  .outil-champs { border-right: 0; border-bottom: 1px solid var(--encre); }
  .article { grid-column: 1/9; }
  .encadre { grid-column: 9/13; }
  .equipe { grid-template-columns: repeat(2,1fr); }
  .contact-mobile { position: fixed; z-index: 35; display: flex; right: 1rem; bottom: 1rem; min-height: 56px; padding: .7rem 1rem; align-items: center; background: var(--alerte); color: var(--blanc); border: 1px solid var(--encre); font-weight: 700; text-decoration: none; transition: background .2s ease, transform .2s ease; }
  .contact-mobile:hover { background: var(--encre); transform: translateY(-2px); }
}

@media (max-width: 650px) {
  :root { --marge: 1rem; }
  .bande-aide { min-height: 48px; font-size: .78rem; }
  .bande-aide span { display: none; }
  .entete-ligne { min-height: 78px; }
  .nav { inset-block-start: 126px; }
  .nav ul { grid-template-columns: 1fr; }
  .hero { min-height: 72svh; padding-top: 4rem; }
  .hero h1, .page-haute h1 { max-width: 100%; font-size: clamp(3.25rem,15.5vw,5.5rem); overflow-wrap: anywhere; hyphens: auto; }
  .choix-entree { display: grid; }
  .bouton, .bouton-clair { width: 100%; }
  .section { padding-block: 4rem; }
  .essentiel-grille, .ligne-chiffres, .equipe, .formulaire { grid-template-columns: 1fr; }
  .essentiel-grille > div { min-height: 150px; }
  .tete-section h2, .titre-grand { font-size: clamp(2.9rem,14vw,4.8rem); }
  .service { min-height: 320px; grid-template-columns: 56px 1fr; }
  .accordeon-bouton { grid-template-columns: 52px 1fr auto; }
  .accordeon-contenu { padding: 1rem; }
  .frise-etapes { grid-template-columns: 1fr; }
  .etape { min-height: 230px; border-right: 0; border-top: 1px solid var(--encre); }
  .manifeste-grille { grid-template-columns: 1fr; }
  .article, .encadre { grid-column: 1/13; }
  .encadre { position: static; margin-top: 2rem; }
  .formulaire .large { grid-column: auto; }
  .zone-liens { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr; }
  .pied-grille > :last-child { grid-column: auto; }
  .pied-fin { flex-direction: column; }
  main, .page-haute, .contenu-page, .carte-zone { max-width: 100%; overflow-x: hidden; }
  .tableau { table-layout: fixed; font-size: .88rem; }
  .tableau th,.tableau td { padding: .55rem; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; } .rv { opacity: 1; transform: none; } }

.service img { width: 100%; aspect-ratio: 16/10; margin: 0 0 1rem; border: 1px solid var(--encre); object-fit: cover; filter: saturate(.78); transition: filter .4s ease, transform .55s ease; }
.service:hover img { filter: saturate(1); transform: scale(1.012); }
.manifeste-colonne img { width: 100%; aspect-ratio: 4/3; margin-bottom: 1rem; border: 1px solid var(--encre); object-fit: cover; filter: saturate(.75); transition: filter .4s ease, transform .55s ease; }
.manifeste-colonne:hover img { filter: saturate(1); transform: translateY(-3px); }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline: 3px solid var(--alerte); outline-offset: 3px; }
.appel-entete,.bouton,.bouton-clair,.contact-mobile,.nav a,.menu-bouton { min-height: 48px; }
