/* Rongqia France — rongqia.fr. Charte : bleu #223A4C, crème #F9F0D8. Aucun !important ; rien ne part vers un tiers. */

/* ─── Polices */
@font-face{font-family:'Rajdhani';font-weight:600;font-style:normal;font-display:swap;src:url('/assets/fonts/Rajdhani-SemiBold.woff') format('woff')}
@font-face{font-family:'Rajdhani';font-weight:500;font-style:normal;font-display:swap;src:url('/assets/fonts/Rajdhani-Medium.woff') format('woff')}
@font-face{font-family:'Open Sans';font-weight:400;font-style:normal;font-display:swap;src:url('/assets/fonts/OpenSans-Regular.woff') format('woff')}
@font-face{font-family:'Open Sans';font-weight:600;font-style:normal;font-display:swap;src:url('/assets/fonts/OpenSans-SemiBold.woff') format('woff')}
@font-face{font-family:'Open Sans';font-weight:400;font-style:italic;font-display:swap;src:url('/assets/fonts/OpenSans-Italic.woff') format('woff')}

/* ─── Jetons */
:root{
  --rf-blue:#223A4C;
  --rf-cream:#F9F0D8;
  --rf-blue-soft:rgba(34,58,76,.72);
  --rf-cream-soft:rgba(249,240,216,.72);
  --font-d:'Rajdhani',sans-serif;
  --font-b:'Open Sans',sans-serif;
  --ease:cubic-bezier(.22,.61,.36,1);
  --swish:cubic-bezier(.16,1,.3,1);
  --wrap:77.5rem;
  --gutter:4.5rem; /* paliers sans clamp : 72 · 49 (961–1200) · 39 (600–960) · 20 (≤ 599) */
  --lh-display:1.05;--lh-title:1.2;--lh-body:1.6;
  --radius:.75rem;
  --sp-2:7rem;--sp-1:4.5rem;
  /* Temps de l'entrée, lus par site.js et bulle.js : le nom, le filet, le trio, les deux phrases, puis la bulle (--entree-apres) */
  --entree-mot-delai:.6s;--entree-mot:1.6s;--entree-filet-delai:1.55s;--entree-filet:1.4s;--entree-delai:2.75s;--entree-fondu:1.4s;--entree-phrase1:.35s;--entree-phrase-ecart:.75s;--entree-phrase:1.7s;--entree-apres:.6s;
}

/* ─── Socle */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;font-size:100%}
/* Base en % (réglage du visiteur respecté), par paliers de largeur et de hauteur : 16, 17, 18, 20.
   Tout en rem : la gamme se décale d'un bloc. */
@media (min-width:1680px) and (min-height:900px){html{font-size:106.25%}}   /* 17 px */
@media (min-width:2240px) and (min-height:1100px){html{font-size:112.5%}}   /* 18 px */
@media (min-width:3200px) and (min-height:1700px){html{font-size:125%}}     /* 20 px */
/* Page crème, sans motif */
body{
  --bg:var(--rf-cream);--fg:var(--rf-blue);--fg-soft:var(--rf-blue-soft);
  margin:0;
  background-color:var(--bg);
  color:var(--fg);
  font-family:var(--font-b);
  font-size:1rem;
  line-height:var(--lh-body);
  -webkit-font-smoothing:antialiased;
}
::selection{background:var(--fg);color:var(--bg)}
img,svg{display:block;max-width:100%}
.rf-logo,.topbar .topbar-logo svg,.page-brand svg{aspect-ratio:2004/320;height:auto}
a{color:inherit}
a:focus-visible,button:focus-visible{outline:2px solid currentColor;outline-offset:.25rem}
h1,h2,h3{font-family:var(--font-d);font-weight:600;line-height:var(--lh-display);margin:0}
p{margin:0}
ul{margin:0;padding:0;list-style:none}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter)}
.defs{display:none}
.nobr{white-space:nowrap}
.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}
.skip{position:absolute;left:1rem;top:1rem;z-index:200;padding:.625rem 1rem;border-radius:var(--radius);background:var(--rf-blue);color:var(--rf-cream);font-family:var(--font-d);font-weight:600;text-decoration:none;opacity:0;pointer-events:none;transition:opacity .2s var(--ease)}
.skip:focus{opacity:1;pointer-events:auto} /* fondu seul */

/* ═══ Entrée : bleu plein écran, contenu au centre optique */
.hero{
  background:var(--rf-blue);color:var(--rf-cream);
  min-height:100svh;display:flex;flex-direction:column;justify-content:center;
  padding:var(--sp-1) 0 calc(var(--sp-1) + 6svh);
  position:relative;
}
.hero ::selection{background:var(--rf-cream);color:var(--rf-blue)}
.hero-brand{display:flex;justify-content:center;margin:0 6vw;padding:0 0 var(--sp-2)}
.rf-logo{display:block;width:42.8rem;color:var(--rf-blue)}
/* Dévoilement : --mot, --filet, --filet-y animables par @property ; ailleurs 1 ; sans @property, logo là d'emblée */
@property --filet{syntax:'<number>';inherits:true;initial-value:1}
@property --filet-y{syntax:'<number>';inherits:true;initial-value:1}
@property --mot{syntax:'<number>';inherits:true;initial-value:1}
/* Jamais en attribut style : la CSP (style-src 'self') le refuse. */
.rf-mot{opacity:var(--mot,1)}
.rf-filet{transform:scale(var(--filet,1),var(--filet-y,1));transform-origin:center;transform-box:fill-box}
.hero .rf-logo{color:var(--rf-cream);
  animation:filet var(--entree-filet) cubic-bezier(.77,0,.175,1) var(--entree-filet-delai) backwards,
  mot var(--entree-mot) cubic-bezier(.37,0,.63,1) var(--entree-mot-delai) backwards}
@keyframes filet{from{--filet:0;--filet-y:2.6}}
@keyframes mot{from{--mot:0}}
@keyframes entree{from{opacity:0;transform:translateY(.5rem)}}
.hero-body{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10rem}
/* Le trio : colonne sur téléphone, ligne dès 961. Rajdhani 600 : pas de 700 embarqué (faux gras). */
.hero-nav{display:flex;flex-direction:column;align-items:center;gap:1rem;
  animation:entree var(--entree-fondu) cubic-bezier(.16,1,.3,1) var(--entree-delai) backwards}
.hero-nav a{
  display:inline-block;padding:.5em 1.05em;text-align:center;white-space:nowrap;
  font-family:var(--font-d);font-weight:600;font-size:1.8125rem;letter-spacing:0;line-height:var(--lh-title);
  color:var(--rf-cream);text-decoration:none;
  border:1px solid rgba(249,240,216,.5);border-radius:999px;
  transition:border-color .3s var(--ease),background-color .3s var(--ease);
}
.hero-nav a:hover,.hero-nav a:focus-visible{border-color:var(--rf-cream);background-color:rgba(249,240,216,.08)}
.hero-nav a:focus-visible{outline-color:var(--rf-cream);outline-offset:.375rem}
.hero-lead{
  margin:0;
  font-family:var(--font-d);font-weight:500;font-size:2.4375rem;line-height:var(--lh-title);text-wrap:balance;
  color:var(--rf-cream);
}
.hero-lead .ligne{display:block;
  animation:entree var(--entree-phrase) cubic-bezier(.37,0,.63,1) calc(var(--entree-delai) + var(--entree-phrase1)) backwards}
.hero-lead .ligne + .ligne{margin-top:1.2em;
  animation-delay:calc(var(--entree-delai) + var(--entree-phrase1) + var(--entree-phrase-ecart))}
/* Titres composés (site.js) : lettre à lettre, en fondu */
.composition .sec h2.rv{opacity:1;transform:none;transition:none}
.compose .cm{display:inline-block;white-space:nowrap}
.compose .sr-only{user-select:none} /* copier-coller : seul le texte vu */
.compose .cl{opacity:0;transition:opacity .7s var(--ease)}
.compose .cl.on{opacity:1}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:1rem 1.9375rem;
  font-family:var(--font-d);font-weight:600;font-size:1.25rem;letter-spacing:.02em;line-height:var(--lh-title);
  color:var(--rf-cream);background:var(--rf-blue);border:1px solid var(--rf-blue);border-radius:var(--radius);
  text-decoration:none;
  transition:background .3s var(--ease),color .3s var(--ease);
}
.btn:hover,.btn:focus-visible{background:transparent;color:var(--rf-blue)}

/* ═══ Barre révélée, une fois l'en-tête passé */
.topbar{
  position:fixed;top:0;left:0;right:0;z-index:130;
  display:flex;align-items:center;justify-content:space-between;
  height:4rem;padding:0 max(var(--gutter),calc((100% - var(--wrap)) / 2 + var(--gutter)));
  --bg:var(--rf-blue);--fg:var(--rf-cream);
  background-color:var(--bg);color:var(--fg);
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .7s var(--ease),visibility 0s .7s;
}
body.past-hero .topbar{opacity:1;visibility:visible;pointer-events:auto;transition-delay:0s}
.topbar-links{display:flex;align-items:center;gap:2.4375rem}
.topbar a{
  font-family:var(--font-d);font-weight:600;font-size:1rem;letter-spacing:.14em;text-transform:uppercase;padding-left:.14em;
  color:var(--fg);text-decoration:none;white-space:nowrap;
  transition:color .3s var(--ease);
}
.topbar .topbar-logo{display:flex;align-items:center;flex:0 0 auto;padding:0}
.topbar .topbar-logo svg{width:12.5rem;flex:none;color:var(--fg);margin-left:-1.8125rem} /* calage optique sur la grille des titres */

/* ═══ Révélation au défilement (site.js ; sans script, tout est visible) */
.js .rv{opacity:0;transform:translateY(.75rem);transition:opacity .7s var(--swish),transform .7s var(--swish);transition-delay:calc(var(--i,0)*.06s)}
.js .rv.is-in{opacity:1;transform:none}
.js .rv-g,.js .rv-d{opacity:0;transition:opacity .9s var(--ease);transition-delay:calc(var(--i,0)*.06s)}
.js .rv-g.is-in,.js .rv-d.is-in{opacity:1}
main,.hero{overflow-x:clip}
/* --i : rang dans la cascade. Jamais de clip-path sur l'élément observé : Chrome le tient pour invisible. */
.rangs li:nth-child(1),.arguments li:nth-child(1),.sec-head > :nth-child(2),.phases li:nth-child(1),.form-champ:nth-of-type(1){--i:1}
.rangs li:nth-child(2),.arguments li:nth-child(2),.sec-head > :nth-child(3),.phases li:nth-child(2),.form-champ:nth-of-type(2){--i:2}
.rangs li:nth-child(3),.arguments li:nth-child(3),.phases li:nth-child(3),.sec-head > :nth-child(4),.form-champ:nth-of-type(3){--i:3}

/* Tiret moyen : l'espace de Rajdhani (0,24 em) ramenée à 0,15 em par marge négative ; texte copié et lu inchangé. */
.hero-nav,.hero-lead,.sec :is(h1,h2),.cta-mot{font-kerning:normal;font-feature-settings:"kern" 1}
.esp{margin-inline-end:-.09em}
/* ═══ Sections — échelle 16 · 20 · 25 · 31 · 39 · 49 ; blancs 112 · 72 */
.sec{padding:var(--sp-1) 0;scroll-margin-top:4rem}
/* Entre deux sections : 32 de plus (176 ; téléphone 144), le filet au milieu */
main > .sec + .sec{--sep:2rem;position:relative;padding-top:calc(var(--sp-1) + var(--sep))}
/* Le filet : trait du logo étiré, 0,75 px au plus épais ; tracé depuis son centre, une fois. */
.filet-sep{position:absolute;left:0;right:0;top:calc(var(--sep) / 2);margin:0 auto;display:block;
  width:calc(min(100%, var(--wrap)) - 2 * var(--gutter));height:.0625rem;fill:var(--fg);opacity:.5;pointer-events:none}
.js .filet-sep{transform:scaleX(0);transition:transform 1.6s cubic-bezier(.77,0,.175,1)}
.js .filet-sep.is-in{transform:none}
.sec :is(h1,h2){font-size:2.4375rem;line-height:var(--lh-display);text-wrap:balance;letter-spacing:-.01em}

/* Activités : grille 5/7 */
.activite .wrap{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:4.5rem;align-items:start}
.sec-head{text-align:left}
.sec-head :is(h1,h2){margin-bottom:1.9375rem}
.lead{font-family:var(--font-d);font-weight:500;font-size:1.5625rem;line-height:var(--lh-title);text-wrap:balance;max-width:22em}
/* Appel avec lien : la flèche est un décor */
.cta{margin:0;font-family:var(--font-d);font-weight:600;font-size:1.25rem;line-height:var(--lh-title);text-align:left}
.lead + .cta{margin-top:1rem}
.cta a{display:inline-flex;align-items:baseline;gap:.5rem;color:var(--fg);text-decoration:none}
.cta-mot{text-wrap:balance;transition:text-decoration-color .3s var(--ease)}
/* sans lien : la voix de l'accroche */
.cta:not(:has(a)){font-weight:500;font-size:1.5625rem}
/* Dessins en filigrane, gaufrés, derrière le texte (outils/filigranes.py) ; décor, hors des clics. */
.activite:not(#a-propos){overflow:hidden;overflow:clip;--fg-soft:rgba(34,58,76,.78)} /* étiquettes à .78 : contraste AA (5,6:1) */
.activite:not(#a-propos) > .wrap{position:relative;isolation:isolate}
.activite:not(#a-propos) > .wrap::before{content:"";position:absolute;z-index:-1;pointer-events:none;left:var(--fil-x,50%);top:var(--fil-y,50%);
  width:var(--fil-l);aspect-ratio:var(--fil-r);background:var(--fil-src) center/contain no-repeat;
  transform:translate(-50%,-50%) perspective(60rem) var(--fil-t)}
#gestion{--fil-src:url(/assets/pictos/filigrane-secretariat.svg);--fil-r:87.22/88.52;--fil-l:17rem;--fil-y:50%;--fil-t:rotateX(18deg) rotateY(-10deg) rotate(-30deg)}
#sites{--fil-src:url(/assets/pictos/filigrane-sites.svg);--fil-r:79.78/67.5;--fil-l:22rem;--fil-t:rotateX(16deg) rotateY(-6deg) rotate(4deg)}
#audit{--fil-src:url(/assets/pictos/filigrane-audit.svg);--fil-r:62.32/61.26;--fil-l:14.5rem;--fil-y:50%;--fil-t:rotateX(14deg) rotateY(10deg) rotate(-45deg)}

/* Ordinateur : le dessin dans le flux, sous le titre, dans la colonne vide */
@media (min-width:961px){
  .activite:is(#gestion,#sites,#audit) > .wrap::before{content:none}
  :is(#gestion,#sites,#audit) .sec-head{position:relative}
  :is(#gestion,#sites,#audit) .sec-head::after{content:"";display:block;position:relative;z-index:-1;pointer-events:none;margin-top:var(--pic-y,3.0625rem);
    width:var(--pic-l,var(--fil-l));aspect-ratio:var(--fil-r);background:var(--fil-src) center/contain no-repeat;
    transform:perspective(60rem) var(--fil-t)}
  #sites{--pic-l:19rem;--pic-y:4.0625rem}
  /* clé couchée : gaufrage propre, pointe gauche alignée sur le titre */
  #audit{--fil-src:url(/assets/pictos/filigrane-audit-horizontale.svg);--fil-t:rotateX(14deg) rotateY(10deg) rotate(45deg);--pic-y:1rem}
  #audit .sec-head::after{margin-left:2.875rem;margin-bottom:-5rem} /* la clé couchée n'occupe que le milieu de sa boîte carrée */
}
@media (min-width:961px) and (max-height:800px){#gestion{--pic-l:14rem}#sites{--pic-l:16rem}#audit{--pic-l:11rem}} /* écran bas : dessins entiers au-dessus du filet */

/* Secrétariat : trois rangs */
.rangs{display:flex;flex-direction:column;gap:1.9375rem}
.rangs li{display:flex;flex-direction:column;gap:.5rem}
.rangs b{font-family:var(--font-d);font-weight:600;font-size:1.5625rem;line-height:var(--lh-title)}
.rangs span{max-width:31em;font-size:1.25rem;line-height:var(--lh-body)} /* environ 70 signes */
/* Questions fréquentes : details, corps des rangs */
.faq{display:flex;flex-direction:column;gap:1.5rem}
.faq summary{display:flex;justify-content:space-between;align-items:baseline;gap:1.5rem;cursor:pointer;list-style:none;font-family:var(--font-d);font-weight:600;font-size:1.5625rem;line-height:var(--lh-title);text-wrap:balance;border-radius:var(--radius)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";flex:none;font-weight:500;width:1ch;text-align:center}
.faq details[open] > summary::after{content:"–"}
.faq summary:focus-visible{outline:2px solid currentColor;outline-offset:.375rem} /* le « + » respire */
.faq p{margin:.5rem 0 0;max-width:34em;font-size:1.25rem;line-height:var(--lh-body)}

/* Sites : arguments, puis tarifs */
.matiere{display:flex;flex-direction:column;gap:2.4375rem;min-width:0}
.arguments{display:flex;flex-direction:column;gap:1.9375rem}
.arguments li{font-family:var(--font-d);font-weight:600;font-size:1.5625rem;line-height:var(--lh-title);text-wrap:pretty}

/* Audit : trois phases en rangs */
.phases{display:flex;flex-direction:column;gap:1.9375rem;margin:0;padding:0;list-style:none}
.phases li{display:flex;flex-direction:column;gap:.5rem;min-width:0}
.phase-mot{font-family:var(--font-d);font-weight:600;font-size:1rem;letter-spacing:.18em;text-transform:uppercase;line-height:var(--lh-title);color:var(--fg-soft)}
.phases p{margin:0;font-family:var(--font-d);font-weight:600;font-size:1.5625rem;line-height:var(--lh-title);text-wrap:pretty}


/* À son arrivée, la section monte de 12, d'un bloc */
.js .rv-sec > .wrap{transform:translateY(.75rem);transition:transform 1.4s var(--ease)}
.js .rv-sec.is-in > .wrap{transform:none}

.tarifs{display:flex;flex-direction:column;align-items:flex-start;--i:4}
.tarifs-titre{display:flex;align-items:baseline;margin-bottom:1.25rem;font-family:var(--font-d);font-weight:600;font-size:1rem;letter-spacing:.18em;text-transform:uppercase;color:var(--fg-soft)}
.tarifs dl{margin:0;width:100%;display:flex;flex-direction:column;gap:1rem}
.tarifs dl > div{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:1rem;align-items:baseline}
.tarifs dt{font-size:1.25rem;line-height:var(--lh-title);color:var(--fg)}
.tarifs dd{margin:0;text-align:right;font-family:var(--font-d);font-weight:600;font-size:1.5625rem;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums} /* interligne 1 : la ligne garde la hauteur du libellé */
.matiere > .btn{align-self:flex-start;margin-top:-.5rem;--i:4} /* à 31 du dernier rang, comme sous les tarifs */
.tarifs .btn{margin-top:1.9375rem}

/* À propos : portrait et nom */
.portrait{display:flex;align-items:flex-start;gap:1.9375rem;--i:1}
.portrait img{width:7.5rem;height:7.5rem;flex:none}
.portrait-texte{display:flex;flex-direction:column;gap:1.25rem;min-width:0}
.portrait-texte > p:first-child{display:flex;flex-direction:column;gap:.5rem}
.portrait .portrait-langues{font-family:var(--font-d);font-weight:600;font-size:1rem;letter-spacing:.18em;text-transform:uppercase;color:var(--fg-soft)}
.portrait .portrait-mot{font-family:var(--font-d);font-weight:500;font-size:1.25rem;line-height:var(--lh-title);text-wrap:balance;max-width:22em}
.portrait b{font-family:var(--font-d);font-weight:600;font-size:1.5625rem;line-height:var(--lh-title)}
.portrait span{font-size:1rem;line-height:var(--lh-body);color:var(--fg-soft)}

/* Contact : une ligne, sans bouton */
.contact{padding:var(--sp-1) 0 var(--sp-2)}
.contact .wrap{text-align:center}
.contact-ligne{margin:0;font-family:var(--font-d);font-weight:500;font-size:1.5625rem;line-height:var(--lh-title);text-wrap:balance}
.contact-ligne a{color:var(--fg);font-weight:600;text-decoration:none;white-space:nowrap} /* jamais coupé sur deux lignes */

/* Pied : une ligne ; empilé et centré sur téléphone */
.footer{padding:1.25rem 0;background:var(--rf-blue);color:var(--rf-cream-soft)}
.footer ::selection{background:var(--rf-cream);color:var(--rf-blue)}
.footer .wrap{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.75rem 1.5625rem}
.footer nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.75rem 1.5625rem}
/* capitales à 13, hors gamme : le pied seul */
.footer a{font-family:var(--font-d);font-weight:500;font-size:.8125rem;letter-spacing:.16em;padding-left:.16em;text-transform:uppercase;text-decoration:none;transition:color .3s var(--ease)}
.footer a:focus-visible{outline-color:var(--rf-cream)}
.footer nav a{color:#BDBDB1;color:color-mix(in srgb,var(--rf-cream) 72%,var(--rf-blue))} /* teinte adoucie, opaque */
.footer-id{order:-1;margin:0;font-family:var(--font-d);font-weight:500;font-size:.8125rem;letter-spacing:.16em;padding-left:.16em;text-transform:uppercase;color:var(--rf-cream-soft);text-wrap:balance}

/* ═══ Liens seuls : filet de 1 px au survol et au focus. Dans un texte courant : soulignés (WCAG 1.4.1). */
.cta-mot,.topbar-links a,.footer nav a,.contact-ligne a,.page .back{
  text-decoration-line:underline;text-decoration-thickness:1px;text-decoration-color:transparent;text-underline-offset:.3em;
}
.cta a,.topbar-links a,.footer nav a,.contact-ligne a,.page .back{transition:color .3s var(--ease),text-decoration-color .3s var(--ease)}
/* l'espacement suit la dernière lettre : on rogne la queue du filet ; jamais au focus. */
.topbar-links a:not(:focus-visible){clip-path:inset(0 .14em 0 0)}
.footer nav a:not(:focus-visible){clip-path:inset(0 .16em 0 0)}
.cta a:hover .cta-mot,.cta a:focus-visible .cta-mot,.topbar-links a:hover,.topbar-links a:focus-visible,.footer nav a:hover,.footer nav a:focus-visible,.contact-ligne a:hover,.contact-ligne a:focus-visible,.page .back:hover,.page .back:focus-visible{text-decoration-color:currentColor}

/* ═══ Pages intérieures (mentions, données, accessibilité, contact) */
.page{padding:var(--sp-1) 0 var(--sp-2)}
/* Pages courtes (404) : le pied reste en bas */
body:has(> main.page){min-height:100svh;display:flex;flex-direction:column}
main.page{flex:1 0 auto}
/* Pages légales : grille 5/7 */
.page-legale .wrap{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:4.5rem;align-items:baseline}
.page-legale .wrap > *{grid-column:2}
.page-legale .wrap > h2{grid-column:1;margin:3.0625rem 0 0}
.page-legale .wrap > .back,.page-legale .wrap > h1,.page-legale .wrap > .chapeau{grid-column:1 / -1}
.page-legale .wrap > .chapeau{margin-bottom:1rem}
.page-brand{display:flex;justify-content:center;padding:var(--sp-1) 0 0}
.page-brand svg{width:min(22.5rem,60vw);color:var(--rf-blue)}
.page h1{font-size:3.0625rem;margin:0 0 2.4375rem}
.page h2{font-size:1.9375rem;line-height:var(--lh-title);margin:3.0625rem 0 1rem}
.page h3{font-size:1.25rem;line-height:var(--lh-title);margin:1.5625rem 0 .5rem}
.page p,.page li{max-width:70ch}
.page p + p{margin-top:1em}
/* Chapeau : 20, bleu plein */
.page .chapeau{font-size:1.25rem;line-height:var(--lh-body)}
.page ul{list-style:disc;padding-left:1.25rem}
.page li{margin:.5rem 0}
.page dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:1rem 1.9375rem;max-width:70ch;align-items:baseline}
.page dt{font-family:var(--font-d);font-weight:600;font-size:1rem;letter-spacing:.18em;text-transform:uppercase;line-height:var(--lh-body);color:var(--fg-soft)}
.page dd{margin:0}
.page .back{display:inline-block;justify-self:start;margin-bottom:1.9375rem;font-family:var(--font-d);font-weight:600} /* zone et anneau de focus collés au texte */

/* ═══ Formulaire de contact : grille 5/7 */
.page-contact .wrap{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:4.5rem;align-items:start}
.page-contact .back{grid-column:1 / -1}
.page-contact h1{margin-bottom:1.5625rem}
/* Le rappel : un bloc à lui, 72 sous le titre */
.rappel{margin-top:4.5rem}
@media (max-width:960px){.rappel{margin-top:3.5rem;margin-bottom:3.5rem}} /* téléphone : 56 dessus et dessous */
.rappel-cta{margin:0;font-family:var(--font-d);font-weight:600;font-size:1rem;line-height:var(--lh-title);letter-spacing:.1em;text-transform:uppercase}
/* Le bouton de rappel : pilule satinée ; un reflet la traverse au survol et au focus */
.rappel-btn{position:relative;display:inline-block;overflow:hidden;padding:.875rem 1.75rem;border-radius:999px;text-decoration:none;
  background:var(--rf-blue);color:var(--rf-cream);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),inset 0 -1px 0 rgba(0,0,0,.18),0 .375rem 1.125rem rgba(13,24,33,.22);
  transition:background .3s var(--ease)}
.rappel-btn::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.35) 50%,transparent 65%);
  background-size:260% 100%;background-position:130% 0}
.rappel-btn:hover{background:#2b4a60}
.rappel-btn:hover::after,.rappel-btn:focus-visible::after{animation:reflet 1.2s ease-in-out 0s 1 both}
.rappel-btn:focus-visible{outline:2px solid var(--rf-blue);outline-offset:.375rem}
@keyframes reflet{from{background-position:130% 0}to{background-position:-30% 0}}
.rappel-titre{margin:0 0 1rem;font-family:var(--font-d);font-weight:600;font-size:1rem;letter-spacing:.18em;text-transform:uppercase;color:var(--fg-soft)}
.form{display:flex;flex-direction:column;gap:1.25rem}
.form-deux{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}
.form-champ{display:flex;flex-direction:column;gap:.5rem}
.form-champ label{font-family:var(--font-d);font-weight:500;font-size:1.25rem;line-height:var(--lh-title)}
.form-opt{font-weight:500}
.form input,.form select,.form textarea{
  width:100%;padding:.75rem 1rem;
  font-family:var(--font-b);font-size:1rem;line-height:var(--lh-body);
  color:var(--rf-blue);background:var(--rf-cream);
  border:1px solid var(--rf-blue-soft);border-radius:var(--radius);
  transition:border-color .2s var(--ease);
}
.form input:focus-visible,.form select:focus-visible,.form textarea:focus-visible{outline:2px solid var(--rf-blue);outline-offset:2px;border-color:var(--rf-blue)}
.form textarea{resize:vertical;min-height:10rem}
.form select{appearance:auto}
/* Scénario à cocher (contact.js) : lignes simples, 44 de haut au moins */
.form-scenario{margin:0;padding:0;border:0;min-width:0}
.form-scenario[hidden]{display:none}
.form-scenario legend{padding:0;margin-bottom:.5rem;font-family:var(--font-d);font-weight:500;font-size:1.25rem;line-height:var(--lh-title)}
.form-scenario-liste{display:flex;flex-direction:column}
.form-scenario label{display:flex;align-items:flex-start;gap:.75rem;min-height:2.75rem;padding:.625rem 0;font-size:1rem;line-height:var(--lh-body);cursor:pointer}
.form .form-scenario input{flex:none;width:1.125rem;height:1.125rem;margin:.1875rem 0 0;padding:0;accent-color:var(--rf-blue);cursor:pointer}
.form-note{font-size:1rem;line-height:var(--lh-body)}
.form .btn{align-self:flex-start;cursor:pointer;margin-top:.5rem}
.form-alt{margin-top:2.4375rem;font-size:1rem}



/* pas de mot seul en fin de paragraphe */
.rangs span,.faq p{text-wrap:pretty}

/* ═══ Entre 961 et 1200 px : gouttière et barre resserrées */
@media (min-width:961px) and (max-width:1200px){
  :root{--gutter:3.0625rem}
  .topbar-links{gap:1.9375rem}
  .hero-brand{margin:0 var(--gutter)}
}

/* ═══ Jusqu'à 1279 px : titres à 31, jamais sur trois lignes */
@media (min-width:961px) and (max-width:1279px){.sec :is(h1,h2){font-size:1.9375rem}.lead,.cta:not(:has(a)){font-size:1.25rem}.rangs b,.arguments li,.phases p,.portrait b,.faq summary{font-size:1.25rem}} /* jamais une accroche plus petite que la matière */
@media (min-width:961px) and (max-width:1100px){.footer .wrap,.footer nav{column-gap:1rem}.footer a,.footer-id{letter-spacing:.12em;padding-left:.12em}.footer nav a:not(:focus-visible){clip-path:inset(0 .12em 0 0)}} /* pied sur une ligne dès 961 */

/* ═══ Écrans étroits : un cran plus bas dans la gamme */
@media (max-width:960px){
  .footer{padding:1.25rem 0}
  .footer .wrap{flex-direction:column;align-items:center;text-align:center}
  .footer nav{justify-content:center;row-gap:.125rem}
  .footer nav a{padding-block:.75rem;margin-block:-.375rem} /* au doigt : 44 px, pied inchangé */
  .footer-id{order:0}
  :root{--sp-2:4.5rem;--sp-1:3.5rem;--gutter:2.4375rem}
  .sec{scroll-margin-top:0} /* pas de barre sur téléphone */
  .topbar{display:none}
  .rf-logo{width:94vw;max-width:29.4375rem}
  .rappel-btn{padding:.9375rem 1.75rem}
  .btn{min-width:min(100%,17.5rem);min-height:3.375rem}
  .sec :is(h1,h2){font-size:1.9375rem}
  .sec-head :is(h1,h2){margin-bottom:1.25rem}
  .activite .wrap,.page-contact .wrap{grid-template-columns:minmax(0,1fr);gap:1.9375rem}
  .page-legale .wrap{grid-template-columns:minmax(0,1fr)}
  .page-legale .wrap > *,.page-legale .wrap > h2{grid-column:1}
  .page-legale .wrap > h2{margin-bottom:1rem}
  .lead,.cta:not(:has(a)){font-size:1.25rem}
  #gestion{--fil-l:13rem;--fil-x:62%}#sites{--fil-l:18rem;--fil-x:64%;--fil-y:30%}#audit{--fil-l:12rem;--fil-x:66%}
  .cta a{padding-block:.625rem;margin-block:-.625rem} /* au doigt : 44 px, mise en page inchangée */
  .contact .wrap{text-align:left}
  .contact-ligne{font-size:1.25rem}
  .rangs{gap:1.5625rem}
  .rangs b,.faq summary{font-size:1.25rem}
  .rangs span,.faq p{font-size:1rem}
  .faq summary{padding-block:.625rem;margin-block:-.625rem} /* au doigt : 44 px */
  .contact-ligne a{padding-block:.5625rem} /* au doigt : 44 px, hauteur de ligne inchangée */
  .matiere{gap:1.9375rem}
  .matiere > .btn{margin-top:0}
  .arguments{gap:1.5625rem}
  .arguments li{font-size:1.25rem}
  .tarifs dt{font-size:1rem}
  .tarifs dd{font-size:1.25rem;line-height:var(--lh-title)}
  .tarifs .btn{width:auto}
  .phases{gap:1.5625rem}
  .portrait{flex-direction:column;align-items:flex-start;gap:1.5625rem}
  .portrait img{width:6rem;height:6rem}
  .phases p{font-size:1.25rem}
  .page h1{font-size:2.4375rem}
  .page h2{font-size:1.5625rem}
  .form-deux{grid-template-columns:minmax(0,1fr)}
  .form .btn{align-self:stretch}
  .page dl{grid-template-columns:minmax(0,1fr);gap:.5rem}
  .page dt{margin-top:1rem}
}

/* ═══ Téléphone */
@media (max-width:599px){
  :root{--gutter:1.25rem}
  .footer nav{column-gap:1.25rem}
}
@media (max-width:374px){.sec :is(h1,h2){font-size:1.5625rem}}

/* ═══ L'entrée selon l'écran ; sur téléphone, en bas, la place de la bulle */
@media (min-width:961px){.hero-nav{flex-direction:row;justify-content:center;gap:1.25rem}}
@media (min-width:1366px) and (max-height:800px){.hero-body{gap:9rem}} /* 1366 × 768 : l'entrée tient dans l'écran */
@media (min-width:961px) and (max-width:1365px){.hero-nav a{font-size:1.5rem}.hero-lead{font-size:2.0625rem}.hero-body{gap:8rem}}
@media (min-width:961px) and (max-width:1200px){.hero-nav{gap:.875rem}.hero-nav a{font-size:1.1875rem}.hero-lead{font-size:1.625rem}.hero-body{gap:7rem}}
@media (max-width:960px){
  .hero{padding:3rem 0 7rem}
  .hero-brand{margin:0 .5rem;padding-bottom:6.5rem} /* marge de 8 : le dessin porte ses blancs */
  .hero-body{gap:6.5rem}
  .hero-nav{gap:1rem;align-items:stretch;width:min(100%,21rem);margin-inline:auto}
  .hero-lead .ligne + .ligne{margin-top:1.5em}
  .hero-nav a{font-size:1.25rem;padding:.7em 1em}
  .hero-lead{font-size:1.5rem}
}
@media (max-width:960px) and (max-height:720px) and (min-height:501px){
  .hero{padding:2.5rem 0 9rem}.hero-brand{padding-bottom:3.5rem}.hero-body{gap:3rem}.hero-nav{gap:.75rem}.hero-nav a{padding:.55em 1em}
}
@media (max-width:960px) and (max-height:500px){ /* paysage : l'entrée n'impose plus le plein écran */
  .hero{min-height:auto;padding:3rem 0}.hero-brand{padding-bottom:2.5rem}.hero-body{gap:2rem}.hero-nav{gap:.5rem}.hero-nav a{font-size:1.0625rem;padding:.4em 1em}.hero-lead{font-size:1.25rem}
}
@media (max-width:374px){.hero-nav a{font-size:1.0625rem}.hero-lead{font-size:1.375rem}} /* 320 : le plus long lien tient sur sa ligne */
@media (max-width:359px){.hero-lead{font-size:1.25rem}} /* 320 : chaque phrase tient sur sa ligne */

/* ═══ Impression et captures : tout visible */
@media print{
  .filet-sep{display:none}
  .js .rv,.js .rv-g,.js .rv-d,.js .rv-sec > .wrap,.hero .rf-logo,.hero-nav,.hero-lead .ligne{opacity:1;transform:none;animation:none;transition:none}
  .topbar{display:none}
  .compose .cl{opacity:1;transform:none;transition:none}
}

/* ═══ Mouvement réduit */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero .rf-logo,.hero-nav,.hero-lead .ligne{animation:none}
  .js .rv-g,.js .rv-d{opacity:1;transform:none;transition:none}
  .topbar,.hero-nav a,.btn,.topbar a,.contact-ligne a,.skip,.form input,.form select,.form textarea,.footer a,.form-alt a,.cta a,.cta-mot,.page .back,
  .topbar-links a,.footer nav a{transition:none}
  .js .rv{opacity:1;transform:none;transition:none}
  .js .rv-sec > .wrap{transform:none;transition:none}
  .js .filet-sep{transform:none;transition:none}
  .rappel-btn::after{display:none}
}
