/* Keurnam Formation — charte reprise du site de référence
   Navy + sarcelle, cartes couleur pleine, coins arrondis, typographie géométrique. */

:root{
  --navy:#12233F;
  --navy-clair:#1C3557;
  --teal:#0E7C7B;
  --teal-fonce:#0A5F5E;
  --menthe:#DCEFE7;
  --menthe-pale:#EEF7F2;
  --gris:#5B6B7C;
  --ligne:#E2E8EC;
  --blanc:#FFFFFF;

  --bleu:#4F7DF3;
  --jaune:#F5B912;
  --rouge:#DE4232;
  --vert:#1DA65A;

  --rayon:18px;
  --rayon-sm:10px;
  --ombre:0 18px 40px rgba(18,35,63,.10);
  --pad-x:clamp(1.1rem,5vw,3.5rem);
  --gap:clamp(1rem,2.4vw,1.8rem);
  --step:clamp(3rem,6vw,5.5rem);

  --titre:"Poppins","Segoe UI",Arial,sans-serif;
  --texte:"Inter","Segoe UI",Arial,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}

body{
  margin:0;background:var(--blanc);color:var(--navy);
  font-family:var(--texte);font-size:clamp(1rem,.97rem + .15vw,1.06rem);
  line-height:1.65;
}

h1,h2,h3,h4,.titre{font-family:var(--titre);font-weight:700;line-height:1.12;letter-spacing:-.02em;color:var(--navy)}
h1{font-size:clamp(2.3rem,1.4rem + 3.6vw,4rem);margin:0 0 .4em;max-width:15ch}
h2{font-size:clamp(1.6rem,1.15rem + 1.8vw,2.5rem);margin:0 0 .6em;max-width:22ch}
h3{font-size:clamp(1.15rem,1rem + .6vw,1.45rem);margin:0 0 .4em}
p{margin:0 0 1.1em;max-width:64ch;color:var(--gris)}
.lede{color:var(--gris);font-size:1.1em}
ul,ol{padding-left:1.2em;margin:0 0 1.2em;max-width:64ch;color:var(--gris)}
li{margin-bottom:.45em}
li::marker{color:var(--teal)}
strong{color:var(--navy)}

a{color:var(--teal);text-decoration-thickness:1px;text-underline-offset:.16em}
a:hover{color:var(--teal-fonce)}
:focus-visible{outline:3px solid var(--teal);outline-offset:3px}

.wrap{width:100%;max-width:80rem;margin-inline:auto;padding-inline:var(--pad-x)}
.skip{position:absolute;left:-9999px;background:var(--navy);color:#fff;padding:.7rem 1rem;z-index:99}
.skip:focus{left:0}

/* ---------------------------------------------------------- en-tête */
.site-head{background:var(--blanc);border-bottom:1px solid var(--ligne);position:sticky;top:0;z-index:40}
.head-row{display:flex;align-items:center;gap:var(--gap);padding-block:1rem;flex-wrap:wrap}
.mark{display:inline-flex;align-items:center;text-decoration:none;flex:0 0 auto}
.mark img{height:58px;width:auto;display:block}
/* repli si le logo n'est pas encore en place */
.mark span{display:block;font-family:var(--titre);font-weight:800;font-size:1.25rem;
  color:var(--navy);letter-spacing:-.03em}
.site-nav{margin-left:auto;flex:0 0 auto}
.site-nav ul{display:flex;gap:1.5rem;white-space:nowrap;list-style:none;margin:0;padding:0;max-width:none}
.site-nav a{font-family:var(--titre);font-weight:600;font-size:.95rem;color:var(--navy);
  text-decoration:none;padding-block:.3rem;border-bottom:2px solid transparent}
.site-nav a:hover,.site-nav a[aria-current="true"]{color:var(--teal);border-bottom-color:var(--teal)}
.head-tel{font-family:var(--titre);font-weight:600;font-size:.92rem;text-decoration:none;
  background:var(--teal);color:#fff;padding:.6rem 1.1rem;border-radius:var(--rayon-sm)}
.head-tel:hover{background:var(--teal-fonce);color:#fff}

.menu > summary{font-family:var(--titre);font-weight:600;font-size:.95rem;cursor:pointer;
  list-style:none;border:1px solid var(--ligne);border-radius:var(--rayon-sm);padding:.5rem .9rem}
.menu > summary::-webkit-details-marker{display:none}
/* Chrome masque le contenu d'un <details> fermé via ::details-content :
   on neutralise ce comportement, l'affichage est piloté par les règles ci-dessous. */
.menu::details-content{content-visibility:visible;block-size:auto;overflow:visible}
@media(min-width:64rem){ .menu > summary{display:none} .menu > ul{display:flex!important} }
@media(max-width:63.99rem){
  .head-row{flex-wrap:nowrap;gap:.6rem}
  .site-nav .menu > ul{display:block!important;position:absolute;left:0;right:0;top:100%;
    background:#fff;border-bottom:1px solid var(--ligne);box-shadow:var(--ombre);
    padding:.5rem var(--pad-x) 1.2rem;margin:0}
  .menu:not([open]) > ul{display:none!important}
  .menu > ul li{border-bottom:1px solid var(--ligne)}
  .menu > ul a{display:block;padding:.85rem 0;border-bottom:0}
  .head-tel{font-size:.85rem;padding:.5rem .8rem;white-space:nowrap}
  .mark img{height:40px}
}

/* ---------------------------------------------------------- fil d'ariane */
.crumbs{background:var(--menthe-pale);font-size:.87rem}
.crumbs ol{display:flex;flex-wrap:wrap;gap:.45rem;list-style:none;margin:0;padding:.8rem 0;
  max-width:none;color:var(--gris)}
.crumbs a{color:var(--gris);text-decoration:none}
.crumbs a:hover{color:var(--teal)}
.crumbs li+li::before{content:"/";margin-right:.45rem;color:#B9C6CF}

/* ---------------------------------------------------------- hero */
.hero{background:
  radial-gradient(55% 70% at 88% 55%, rgba(29,166,131,.20), transparent 70%),
  var(--blanc);
  padding-block:clamp(2.5rem,5vw,4.5rem) var(--step)}
.hero-grid{display:grid;gap:calc(var(--gap)*1.6);grid-template-columns:1fr;align-items:center}
@media(min-width:64rem){.hero-grid{grid-template-columns:1.05fr .95fr}}
.pastille{display:inline-flex;align-items:center;gap:.5rem;background:var(--menthe);
  color:var(--teal-fonce);font-family:var(--titre);font-weight:700;font-size:.78rem;
  letter-spacing:.1em;text-transform:uppercase;padding:.55rem 1.1rem;border-radius:999px;
  margin-bottom:1.4rem}
.hero h1 em{font-style:normal;color:var(--teal)}
.hero .lede{max-width:46ch}

.page-head{padding-block:clamp(2.2rem,4vw,3.6rem) clamp(1.4rem,2.5vw,2.2rem)}
.page-head .lede{max-width:54ch}

/* ---------------------------------------------------------- boutons */
.btn{display:inline-block;font-family:var(--titre);font-weight:600;font-size:1rem;
  padding:.85rem 1.6rem;border-radius:var(--rayon-sm);text-decoration:none;cursor:pointer;
  border:2px solid var(--teal);background:var(--teal);color:#fff;transition:background .15s}
.btn:hover{background:var(--teal-fonce);border-color:var(--teal-fonce);color:#fff}
.btn-ghost{background:transparent;color:var(--navy);border-color:var(--ligne)}
.btn-ghost:hover{background:var(--navy);border-color:var(--navy);color:#fff}
.btn-row{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.6rem}

/* ---------------------------------------------------------- sections */
section{padding-block:var(--step)}
section.band{background:var(--menthe-pale)}
.section-titre{text-align:center;max-width:46rem;margin:0 auto 2.8rem}
.section-titre h2,.section-titre p{margin-inline:auto}

/* bandeau d'arguments sarcelle */
.arguments{background:var(--teal);padding-block:clamp(2rem,4vw,3rem)}
.argument{display:flex;gap:1rem;align-items:flex-start}
.argument .ico{flex:0 0 auto;width:52px;height:52px;background:#fff;border-radius:var(--rayon-sm);
  display:grid;place-items:center;box-shadow:0 5px 0 rgba(0,0,0,.14)}
.argument .ico svg{width:26px;height:26px;stroke:var(--teal);fill:none;stroke-width:1.7}
.argument p{color:#fff;font-family:var(--titre);font-weight:600;margin:0;font-size:1.02rem;
  line-height:1.35;max-width:22ch}

/* ---------------------------------------------------------- grilles et cartes */
.grid{display:grid;gap:var(--gap);grid-template-columns:repeat(auto-fit,minmax(16rem,1fr));max-width:none}
.grid p{max-width:none}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(22rem,1fr))}

/* carte formation couleur pleine */
.carte-couleur{border-radius:var(--rayon);padding:clamp(1.6rem,3vw,2.4rem);position:relative;
  overflow:hidden;display:flex;flex-direction:column;min-height:19rem}
.carte-couleur p{color:inherit}
.carte-couleur .sur-titre{font-family:var(--titre);font-weight:600;font-size:.82rem;
  letter-spacing:.12em;text-transform:uppercase;margin:0 0 .8rem;opacity:.8}
.carte-couleur h3{font-size:clamp(1.4rem,1.1rem + .9vw,1.9rem);margin-bottom:1.1rem;max-width:14ch}
.carte-couleur ul{list-style:none;padding:0;margin:0 0 1.6rem;max-width:34ch}
.carte-couleur li{display:flex;gap:.6rem;align-items:flex-start;font-size:.95rem;margin-bottom:.5rem}
.carte-couleur li svg{flex:0 0 auto;width:18px;height:18px;margin-top:.28rem;
  stroke:currentColor;fill:none;stroke-width:1.8}
.carte-couleur .btn{margin-top:auto;align-self:flex-start;background:var(--teal-fonce);
  border-color:var(--teal-fonce);color:#fff}
.carte-couleur .btn:hover{background:var(--navy);border-color:var(--navy)}
.c-bleu{background:var(--bleu)}
.c-jaune{background:var(--jaune)}
.c-rouge{background:var(--rouge)}
.c-vert{background:var(--vert)}
.c-teal{background:var(--teal)}
.c-bleu,.c-bleu h3,.c-bleu li,.c-jaune,.c-jaune h3,.c-jaune li{color:var(--navy)}
.c-rouge,.c-rouge li,.c-vert,.c-vert li,.c-teal,.c-teal li{color:#fff}
.c-rouge h3,.c-vert h3,.c-teal h3{color:#fff}

/* carte blanche classique */
.card{background:#fff;border:1px solid var(--ligne);border-radius:var(--rayon);padding:1.6rem;
  transition:box-shadow .15s,transform .15s}
.card:hover{box-shadow:var(--ombre);transform:translateY(-2px)}
.card h3{margin-bottom:.5rem}
.card h3 a{color:var(--navy);text-decoration:none}
.card h3 a:hover{color:var(--teal)}
.card p{font-size:.96rem;margin-bottom:1rem}
.card .btn{padding:.6rem 1.2rem;font-size:.92rem}

/* jauge de niveau */
.levels{display:flex;align-items:flex-end;gap:3px;height:15px;margin-bottom:.5rem}
.levels i{display:block;width:7px;border-radius:2px;background:var(--ligne)}
.levels i:nth-child(1){height:7px}.levels i:nth-child(2){height:11px}.levels i:nth-child(3){height:15px}
.levels[data-level="1"] i:nth-child(-n+1),
.levels[data-level="2"] i:nth-child(-n+2),
.levels[data-level="3"] i:nth-child(-n+3){background:var(--teal)}
.levels-label{font-family:var(--titre);font-weight:600;font-size:.78rem;color:var(--gris);
  letter-spacing:.04em;margin-bottom:.6rem}

/* ---------------------------------------------------------- chiffres clés */
.chiffres-bloc{background:var(--menthe);border-radius:var(--rayon);padding:clamp(1.8rem,4vw,3.2rem)}
.chiffres{display:flex;flex-wrap:wrap;gap:clamp(1.5rem,4vw,3.5rem);margin-top:1rem}
.chiffre b{display:block;font-family:var(--titre);font-weight:700;
  font-size:clamp(1.9rem,1.4rem + 1.6vw,2.8rem);color:var(--teal);line-height:1.1}
.chiffre span{font-family:var(--titre);font-weight:500;font-size:.95rem;color:var(--navy)}

/* liste d'atouts avec pictogramme */
.atouts{list-style:none;padding:0;margin:0;max-width:none}
.atouts li{display:flex;gap:1rem;align-items:flex-start;margin-bottom:1.6rem}
.atouts .ico{flex:0 0 auto;width:42px;height:42px;border-radius:var(--rayon-sm);
  background:var(--menthe);display:grid;place-items:center}
.atouts .ico svg{width:20px;height:20px;stroke:var(--teal);fill:none;stroke-width:1.8}
.atouts strong{display:block;font-family:var(--titre);color:var(--navy);margin-bottom:.15rem}
.atouts span{color:var(--gris);font-size:.96rem}

/* ---------------------------------------------------------- formulaire */
.qualifier{background:#fff;border:1px solid var(--ligne);border-radius:var(--rayon);
  padding:1.8rem;box-shadow:var(--ombre)}
.qualifier h2{font-size:1.25rem;max-width:none;margin-bottom:1.2rem}
.field{margin-bottom:1rem}
.field label,fieldset label{display:block;font-family:var(--titre);font-weight:600;font-size:.9rem;
  color:var(--navy);margin-bottom:.35rem}
select,input,textarea{width:100%;font-family:var(--texte);font-size:1rem;color:var(--navy);
  padding:.7rem .85rem;border:1px solid var(--ligne);border-radius:var(--rayon-sm);background:#fff}
select:focus,input:focus,textarea:focus{border-color:var(--teal)}
textarea{min-height:8rem;resize:vertical}
fieldset{border:0;padding:0;margin:0 0 1.6rem}
legend{font-family:var(--titre);font-weight:700;font-size:1.1rem;color:var(--navy);margin-bottom:.8rem}

/* ---------------------------------------------------------- divers */
.linklist{list-style:none;padding:0;max-width:none}
.linklist li{border-bottom:1px solid var(--ligne);margin:0}
.linklist a{display:block;padding:.85rem 0;text-decoration:none;font-family:var(--titre);
  font-weight:600;color:var(--navy)}
.linklist a:hover{color:var(--teal)}

table{border-collapse:collapse;width:100%;max-width:none;font-size:.96rem}
th,td{text-align:left;padding:.85rem .8rem;border-bottom:1px solid var(--ligne);vertical-align:top;color:var(--gris)}
th{font-family:var(--titre);font-weight:600;font-size:.88rem;color:var(--navy)}
td strong{color:var(--teal)}

details:not(.menu){border:1px solid var(--ligne);border-radius:var(--rayon-sm);padding:1rem 1.2rem;
  margin-bottom:.8rem;max-width:64ch;background:#fff}
details:not(.menu) > summary{font-family:var(--titre);font-weight:600;cursor:pointer;color:var(--navy)}
details:not(.menu) > summary::marker{color:var(--teal)}
details:not(.menu) p{margin:.8rem 0 0}

.note{background:var(--menthe-pale);border-left:4px solid var(--teal);border-radius:var(--rayon-sm);
  padding:1.4rem 1.6rem;max-width:64ch}
.note > :last-child{margin-bottom:0}
.note h2{font-size:1.25rem}

.todo{display:inline-block;background:#FFF4D6;border:1px dashed #B07C05;color:#8A3A12;
  font-family:var(--titre);font-weight:600;font-size:.8rem;padding:.15rem .5rem;border-radius:4px}

.two-col{display:grid;gap:calc(var(--gap)*1.6);grid-template-columns:1fr}
@media(min-width:58rem){.two-col{grid-template-columns:1fr 1fr}}
.two-col > * > :last-child{margin-bottom:0}

/* bandeau de confiance */
.confiance{text-align:center}
.confiance h2{margin-inline:auto}
.logos{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;
  gap:clamp(1.5rem,5vw,4rem);margin:2.5rem 0 0;padding:0;max-width:none}
.logos li{list-style:none;font-family:var(--titre);font-weight:700;color:var(--gris);
  font-size:1.05rem;opacity:.75;margin:0}
.logos img{max-height:56px;width:auto}

/* ---------------------------------------------------------- CTA */
.cta-band{background:var(--navy);color:#fff;padding-block:var(--step);
  background-image:radial-gradient(50% 120% at 100% 0%, rgba(14,124,123,.5), transparent 70%)}
.cta-band h2{color:#fff}
.cta-band p{color:#C6D2DE}
.cta-band .btn{background:var(--teal);border-color:var(--teal)}
.cta-band .btn:hover{background:#fff;border-color:#fff;color:var(--navy)}
.cta-band .btn-ghost{background:transparent;border-color:rgba(255,255,255,.35);color:#fff}
.cta-band .btn-ghost:hover{background:#fff;color:var(--navy)}

/* ---------------------------------------------------------- pied de page */
.site-foot{background:var(--navy);color:#C6D2DE;padding-block:var(--step) 2rem;font-size:.96rem}
.site-foot .mark{color:#fff}
.site-foot .mark span{color:#8FA3B8}
.foot-grid{display:grid;gap:calc(var(--gap)*1.4);grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));max-width:none}
.foot-grid h3{color:#fff;font-size:.95rem;letter-spacing:.08em;text-transform:uppercase;margin-bottom:1.1rem}
.foot-grid ul{list-style:none;padding:0;max-width:none}
.foot-grid li{margin-bottom:.6rem}
.foot-grid a{color:#C6D2DE;text-decoration:none}
.foot-grid a:hover{color:#fff;text-decoration:underline}
.foot-grid p{color:#C6D2DE}
.foot-legal{border-top:1px solid rgba(255,255,255,.15);margin-top:2.5rem;padding-top:1.4rem;
  color:#8FA3B8;font-size:.88rem}
.foot-legal strong{color:#fff}
.foot-legal p{color:#8FA3B8}
.foot-legal ul{display:flex;flex-wrap:wrap;gap:1.2rem;list-style:none;padding:0;margin:.8rem 0 0;max-width:none}
.foot-legal a{color:#8FA3B8;text-decoration:none}
.foot-legal a:hover{color:#fff}

.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}
img{max-width:100%;height:auto}

@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* ---------------------------------------------------------- images de contenu */
.illustration{margin:2rem 0;max-width:100%}
.illustration img{width:100%;height:auto;border-radius:var(--rayon);display:block}
.illustration figcaption{font-size:.9rem;color:var(--gris);margin-top:.6rem;text-align:left}
.card-image{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:var(--rayon-sm);
  margin-bottom:1rem;display:block}
.card-article{display:flex;flex-direction:column}

/* ---------------------------------------------------------- blog : en-tête et grille */
.blog-hero{background:var(--navy);color:#fff;padding-block:clamp(2.2rem,5vw,3.6rem);
  border-bottom:4px solid var(--teal)}
.blog-hero h1{color:#fff;max-width:20ch;margin-bottom:.35em}
.blog-hero .lede{color:#C6D2DE;max-width:56ch;margin-bottom:0}
.blog-hero .fil{font-size:.85rem;color:#8FA3B8;margin-bottom:1rem}
.blog-hero .fil a{color:#8FA3B8;text-decoration:none}
.blog-hero .fil a:hover{color:#fff}
.blog-hero .fil span{margin:0 .35rem;opacity:.6}

.rubriques{background:#fff;border-bottom:1px solid var(--ligne);position:sticky;top:0;z-index:30}
.rubriques .wrap{display:flex;gap:1.4rem;overflow-x:auto;padding-block:.9rem;
  scrollbar-width:none}
.rubriques .wrap::-webkit-scrollbar{display:none}
.rubriques a{font-family:var(--titre);font-weight:600;font-size:.92rem;color:var(--gris);
  text-decoration:none;white-space:nowrap;padding-block:.25rem;border-bottom:2px solid transparent}
.rubriques a:hover{color:var(--navy)}
.rubriques a.on{color:var(--teal);border-bottom-color:var(--teal)}

.section-blog{background:#F5F7FA;padding-block:clamp(2.2rem,5vw,3.5rem)}
.grille-articles{display:grid;gap:clamp(1.4rem,3vw,2.2rem);
  grid-template-columns:repeat(auto-fill,minmax(15.5rem,1fr))}
.carte-article{display:flex;flex-direction:column}
.carte-article .vignette{display:block;aspect-ratio:4/3;border-radius:var(--rayon-sm);
  overflow:hidden;background:linear-gradient(135deg,var(--menthe),var(--wash-deep,#D7E2D8));
  margin-bottom:1rem}
.carte-article .vignette img{width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .25s}
.carte-article:hover .vignette img{transform:scale(1.03)}
.carte-article .rubrique{font-family:var(--titre);font-weight:600;font-size:.75rem;
  letter-spacing:.1em;text-transform:uppercase;color:var(--teal);margin:0 0 .4rem}
.carte-article .rubrique a{color:inherit;text-decoration:none}
.carte-article .rubrique a::before{content:"· "}
.carte-article .rubrique a:hover{text-decoration:underline}
.carte-article h3{font-size:1.05rem;line-height:1.3;margin:0 0 .5rem}
.carte-article h3 a{color:var(--navy);text-decoration:none}
.carte-article h3 a:hover{color:var(--teal)}
.carte-article .date{font-size:.85rem;color:var(--gris);margin:auto 0 0}
.aide-vide{color:var(--gris)}

/* vignettes de repli, colorées par rubrique */
.vignette.r-excel{background:linear-gradient(135deg,#1DA65A,#0E7C7B)}
.vignette.r-word{background:linear-gradient(135deg,#4F7DF3,#12233F)}
.vignette.r-powerpoint{background:linear-gradient(135deg,#DE4232,#9A3A1F)}
.vignette.r-microsoft-365{background:linear-gradient(135deg,#0E7C7B,#12233F)}
.vignette.r-python{background:linear-gradient(135deg,#F5B912,#DE4232)}
.vignette.r-cpf{background:linear-gradient(135deg,#12233F,#0E7C7B)}
.vignette.r-formation-professionnelle{background:linear-gradient(135deg,#4F7DF3,#0E7C7B)}
.vignette.r-entreprises{background:linear-gradient(135deg,#12233F,#4F7DF3)}
