/* Fluide & Métier : ma-formation-frigoriste.fr. Préfixe fm-. Mobile d'abord. */
:root{
  --fm-ink:var(--wp--preset--color--contrast,#0F2230);
  --fm-primary:var(--wp--preset--color--primary,#023047);
  --fm-cta:var(--wp--preset--color--accent-1,#C62F3B);
  --fm-pale:var(--wp--preset--color--accent-2,#EAF5FB);
  --fm-action:var(--wp--preset--color--accent-3,#0B6E99);
  --fm-muted:var(--wp--preset--color--accent-4,#4A6272);
  --fm-alt:var(--wp--preset--color--accent-5,#F4F8FA);
  --fm-border:var(--wp--preset--color--accent-6,#D5E3EA);
  --fm-base:var(--wp--preset--color--base,#FFFFFF);
  --fm-glacier:#8ECAE6;
  --fm-heat:#E63946;
  --fm-ok:#1F7A4D;
  --fm-h:var(--wp--preset--font-family--heading,"Space Grotesk",system-ui,sans-serif);
  --fm-b:var(--wp--preset--font-family--body,"Inter",system-ui,sans-serif);
  --fm-r:10px;
  --fm-shadow:0 1px 2px rgba(2,48,71,.06),0 8px 24px rgba(2,48,71,.07);
}
.fm-page,.fm-page *{box-sizing:border-box}
.fm-page{font-family:var(--fm-b);color:var(--fm-ink);font-size:1.0625rem;line-height:1.65;background:var(--fm-base)}
.fm-page h1,.fm-page h2,.fm-page h3,.fm-page h4{font-family:var(--fm-h);color:var(--fm-primary);line-height:1.2;letter-spacing:-.01em;margin:0 0 .6em}
.fm-page h1{font-size:clamp(1.9rem,5.2vw,3rem);font-weight:700}
.fm-page h2{font-size:clamp(1.45rem,3.4vw,2rem);font-weight:700;margin-top:0}
.fm-page h3{font-size:1.2rem;font-weight:600}
.fm-page p{margin:0 0 1em}
.fm-page a{color:var(--fm-action);text-underline-offset:3px}
.fm-page a:hover{color:var(--fm-primary)}
.fm-page strong{color:var(--fm-primary)}
.fm-page ul,.fm-page ol{padding-left:1.25em;margin:0 0 1em}
.fm-page li{margin:.25em 0}
.fm-hot{color:var(--fm-cta)}
.fm-wrap{width:100%;max-width:1160px;margin:0 auto;padding:0 16px}
.fm-narrow{max-width:800px}
.fm-section{padding:48px 0}
.fm-section--alt{background:var(--fm-alt)}
.fm-section--pale{background:var(--fm-pale)}
.fm-section--dark{background:var(--fm-primary);color:#E9F4FA}
.fm-section--dark h2,.fm-section--dark h3,.fm-section--dark strong{color:#fff}
.fm-section--dark a{color:var(--fm-glacier)}
.fm-kicker{display:inline-flex;align-items:center;gap:.5em;font-family:var(--fm-h);font-size:.8rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--fm-action);margin-bottom:.8em}
.fm-kicker::before{content:"";width:22px;height:2px;background:linear-gradient(90deg,var(--fm-glacier) 50%,var(--fm-heat) 50%)}
.fm-lead{font-size:1.15rem;color:var(--fm-muted);max-width:62ch}
.fm-small{font-size:.875rem;color:var(--fm-muted)}

/* Fil d'Ariane */
.fm-crumbs{font-size:.85rem;color:var(--fm-muted);padding-top:14px}
.fm-crumbs ol{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:.35em}
.fm-crumbs li:not(:last-child)::after{content:"›";margin-left:.35em;color:var(--fm-border)}
.fm-crumbs a{color:var(--fm-muted)}

/* Hero */
.fm-hero{background:linear-gradient(180deg,var(--fm-pale) 0%,#fff 100%);padding:28px 0 44px;position:relative;overflow:hidden}
.fm-hero::after{content:"";position:absolute;right:-120px;top:-120px;width:340px;height:340px;border-radius:50%;border:2px dashed rgba(142,202,230,.55);pointer-events:none}
.fm-hero__grid{display:grid;gap:28px;position:relative;z-index:1}
.fm-hero__text .fm-lead{margin-bottom:1.2em}
.fm-checks{list-style:none;padding:0;margin:0 0 1.4em}
.fm-checks li{position:relative;padding-left:1.8em;margin:.45em 0}
.fm-checks li::before{content:"";position:absolute;left:0;top:.42em;width:1.05em;height:1.05em;border-radius:50%;background:var(--fm-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat}
.fm-hero__aside{background:#fff;border:1px solid var(--fm-border);border-radius:14px;box-shadow:var(--fm-shadow);padding:22px}
.fm-hero__aside h2{font-size:1.25rem;margin-bottom:.3em}

/* Boutons */
.fm-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5em;font-family:var(--fm-h);font-weight:600;font-size:1rem;line-height:1.2;padding:.85em 1.3em;border-radius:8px;text-decoration:none;border:2px solid transparent;cursor:pointer;transition:transform .15s ease,background .15s ease}
.fm-page a.fm-btn--cta,.fm-btn--cta{background:var(--fm-cta);color:#fff;border-color:var(--fm-cta)}
.fm-page a.fm-btn--cta:hover,.fm-btn--cta:hover{background:#A92531;color:#fff;transform:translateY(-1px)}
.fm-page a.fm-btn--ghost,.fm-btn--ghost{background:transparent;color:var(--fm-primary);border-color:var(--fm-primary)}
.fm-section--dark a.fm-btn--ghost{color:#fff;border-color:#fff}
.fm-btns{display:flex;flex-wrap:wrap;gap:12px;margin:1em 0}

/* Deux parcours */
.fm-paths{display:grid;gap:14px;margin:1.2em 0}
.fm-path{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid var(--fm-border);border-left:5px solid var(--fm-glacier);border-radius:var(--fm-r);padding:16px 18px;text-decoration:none;color:var(--fm-ink);box-shadow:var(--fm-shadow)}
.fm-path--pro{border-left-color:var(--fm-heat)}
.fm-page a.fm-path{color:var(--fm-ink)}
.fm-path strong{display:block;font-family:var(--fm-h);font-size:1.1rem}
.fm-path span{display:block;font-size:.92rem;line-height:1.45;color:var(--fm-muted);margin-top:.2em}
.fm-path svg{flex:0 0 40px;width:40px;height:40px}

/* Grilles et cartes */
.fm-grid{display:grid;gap:18px}
.fm-card{background:#fff;border:1px solid var(--fm-border);border-radius:var(--fm-r);padding:20px;position:relative}
.fm-card h3{margin-bottom:.4em}
.fm-card p:last-child{margin-bottom:0}
.fm-card__tag{display:inline-block;font-family:var(--fm-h);font-size:.75rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase;padding:.2em .6em;border-radius:4px;background:var(--fm-pale);color:var(--fm-primary);margin-bottom:.7em}
.fm-card__tag--heat{background:#FDECEE;color:#A92531}
.fm-card--link{transition:border-color .15s ease,box-shadow .15s ease}
.fm-card--link:hover{border-color:var(--fm-action);box-shadow:var(--fm-shadow)}
.fm-card__more{font-weight:600;text-decoration:none}
.fm-card__more::after{content:" →"}
.fm-icon{width:44px;height:44px;margin-bottom:.6em;display:block}

/* Fiche synthèse */
.fm-fiche{background:#fff;border:1px solid var(--fm-border);border-top:4px solid var(--fm-primary);border-radius:var(--fm-r);padding:18px 20px;margin:1.4em 0;box-shadow:var(--fm-shadow)}
.fm-fiche__title{font-family:var(--fm-h);font-weight:700;color:var(--fm-primary);margin:0 0 .7em;font-size:1.05rem}
.fm-fiche dl{display:grid;gap:10px 18px;margin:0}
.fm-fiche dt{font-size:.78rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--fm-muted)}
.fm-fiche dd{margin:0 0 .3em;font-weight:500}
.fm-fiche__src{font-size:.8rem;color:var(--fm-muted);margin:.9em 0 0;border-top:1px dashed var(--fm-border);padding-top:.6em}

/* Bandeau réglementaire daté */
.fm-reg{display:flex;gap:12px;align-items:flex-start;background:var(--fm-pale);border:1px solid #BFDFEE;border-radius:var(--fm-r);padding:12px 16px;font-size:.9rem;margin:1.2em 0}
.fm-reg::before{content:"";flex:0 0 22px;height:22px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='%23023047' stroke-width='2'/%3E%3Cpath d='M12 7v5l3 2' fill='none' stroke='%23023047' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
.fm-reg p{margin:0}

/* Encadrés */
.fm-note,.fm-warn,.fm-tip{border-radius:var(--fm-r);padding:14px 18px;margin:1.2em 0;border-left:4px solid}
.fm-note{background:var(--fm-alt);border-color:var(--fm-action)}
.fm-warn{background:#FFF4F4;border-color:var(--fm-cta)}
.fm-tip{background:#EFF8F3;border-color:var(--fm-ok)}
.fm-note p:last-child,.fm-warn p:last-child,.fm-tip p:last-child{margin-bottom:0}

/* Tableaux */
.fm-tablewrap{overflow-x:auto;margin:1.2em 0;border:1px solid var(--fm-border);border-radius:var(--fm-r);-webkit-overflow-scrolling:touch}
.fm-table{width:100%;border-collapse:collapse;font-size:.95rem;min-width:560px;background:#fff}
.fm-table th,.fm-table td{padding:11px 14px;text-align:left;vertical-align:top;border-bottom:1px solid var(--fm-border)}
.fm-table thead th{background:var(--fm-primary);color:#fff;font-family:var(--fm-h);font-weight:600;font-size:.88rem}
.fm-table tbody tr:nth-child(even){background:var(--fm-alt)}
.fm-table tbody th{font-family:var(--fm-h);color:var(--fm-primary)}
.fm-table caption{caption-side:bottom;text-align:left;font-size:.8rem;color:var(--fm-muted);padding:8px 14px}

/* Sélecteur d'attestation (cartes catégorie) */
.fm-cats{display:grid;gap:14px;margin:1.2em 0}
.fm-cat{border:1px solid var(--fm-border);border-radius:var(--fm-r);padding:16px 18px;background:#fff;display:grid;grid-template-columns:auto 1fr;gap:4px 14px;align-items:start}
.fm-cat__code{grid-row:span 3;font-family:var(--fm-h);font-weight:700;font-size:1.35rem;color:#fff;background:var(--fm-primary);border-radius:8px;min-width:54px;height:54px;display:flex;align-items:center;justify-content:center}
.fm-cat__code--new{background:var(--fm-cta)}
.fm-cat h3{margin:0;font-size:1.05rem}
.fm-cat p{margin:0;font-size:.95rem}
.fm-cat__arrow{font-size:.85rem;color:var(--fm-muted)}

/* Étapes en circuit */
.fm-steps{list-style:none;padding:0;margin:1.4em 0;display:grid;gap:18px;counter-reset:fm}
.fm-steps li{position:relative;padding:0 0 0 64px;counter-increment:fm;margin:0}
.fm-steps li::before{content:counter(fm);position:absolute;left:0;top:0;width:46px;height:46px;border-radius:50%;background:#fff;border:3px solid var(--fm-glacier);color:var(--fm-primary);font-family:var(--fm-h);font-weight:700;font-size:1.2rem;display:flex;align-items:center;justify-content:center}
.fm-steps li:nth-child(even)::before{border-color:var(--fm-heat)}
.fm-steps li:not(:last-child)::after{content:"";position:absolute;left:22px;top:50px;bottom:-16px;width:2px;background:repeating-linear-gradient(180deg,var(--fm-border) 0 6px,transparent 6px 10px)}
.fm-steps h3{margin:.3em 0 .25em;font-size:1.08rem}
.fm-steps p{margin:0;color:var(--fm-muted)}

/* Chiffres */
.fm-stats{display:grid;gap:14px;grid-template-columns:repeat(2,1fr);margin:1.2em 0}
.fm-stat{background:#fff;border:1px solid var(--fm-border);border-radius:var(--fm-r);padding:16px}
.fm-stat b{display:block;font-family:var(--fm-h);font-size:1.7rem;color:var(--fm-primary);line-height:1.1}
.fm-stat span{font-size:.85rem;color:var(--fm-muted)}

/* Sommaire */
.fm-toc{background:var(--fm-alt);border:1px solid var(--fm-border);border-radius:var(--fm-r);padding:14px 18px;margin:1.2em 0;font-size:.95rem}
.fm-toc p{font-family:var(--fm-h);font-weight:600;color:var(--fm-primary);margin:0 0 .4em}
.fm-toc ol{margin:0}

/* Contenu long */
.fm-prose{max-width:780px}
.fm-prose h2{margin-top:1.8em}
.fm-prose h3{margin-top:1.4em}
.fm-cols{display:grid;gap:28px}

/* FAQ */
.fm-faq{margin:1em 0}
.fm-faq details{border:1px solid var(--fm-border);border-radius:var(--fm-r);background:#fff;margin:0 0 10px;padding:0 18px}
.fm-faq summary{cursor:pointer;font-family:var(--fm-h);font-weight:600;color:var(--fm-primary);padding:14px 28px 14px 0;list-style:none;position:relative}
.fm-faq summary::-webkit-details-marker{display:none}
.fm-faq summary::after{content:"+";position:absolute;right:0;top:10px;font-size:1.4rem;color:var(--fm-action)}
.fm-faq details[open] summary::after{content:"−"}
.fm-faq details>div{padding:0 0 14px}

/* Sources */
.fm-sources{font-size:.85rem;color:var(--fm-muted);border-top:1px solid var(--fm-border);margin-top:2em;padding-top:1em}
.fm-sources h2{font-size:1rem;color:var(--fm-muted)}
.fm-sources ul{padding-left:1.1em}

/* Bandeau final */
.fm-cta-band{background:var(--fm-primary);color:#E9F4FA;border-radius:16px;padding:30px 22px;margin:8px 0;position:relative;overflow:hidden}
.fm-cta-band::before{content:"";position:absolute;inset:auto -60px -80px auto;width:220px;height:220px;border-radius:50%;border:2px dashed rgba(142,202,230,.4)}
.fm-cta-band h2{color:#fff}
.fm-cta-band p{max-width:60ch}
.fm-cta-band .fm-btn--ghost{color:#fff;border-color:#fff}
.fm-cta-band .fm-small{color:#BCD9E8}

/* Formulaire */
.cx-form{display:grid;gap:14px}
.cx-form fieldset{border:0;padding:0;margin:0;min-width:0}
.cx-form legend,.cx-form label{font-weight:600;font-size:.92rem;color:var(--fm-primary);display:block;margin-bottom:.35em}
.cx-form input[type=text],.cx-form input[type=email],.cx-form input[type=tel],.cx-form select,.cx-form textarea{width:100%;font:inherit;font-size:1rem;padding:.7em .8em;border:1.5px solid var(--fm-border);border-radius:8px;background:#fff;color:var(--fm-ink)}
.cx-form input:focus,.cx-form select:focus,.cx-form textarea:focus{outline:3px solid rgba(11,110,153,.25);border-color:var(--fm-action)}
.fm-choice{display:grid;gap:8px}
.fm-choice label{display:flex;align-items:center;gap:.6em;font-weight:500;color:var(--fm-ink);border:1.5px solid var(--fm-border);border-radius:8px;padding:.6em .8em;margin:0;cursor:pointer;background:#fff}
.fm-choice label:has(input:checked){border-color:var(--fm-action);background:var(--fm-pale)}
.fm-choice input{accent-color:var(--fm-action);width:1.1em;height:1.1em;margin:0}
.fm-row{display:grid;gap:14px}
.cx-form .fm-consent{display:flex;gap:.6em;align-items:flex-start;font-weight:400;font-size:.88rem;color:var(--fm-ink)}
.cx-form .fm-consent input{margin-top:.25em;width:1.1em;height:1.1em;flex:0 0 auto;accent-color:var(--fm-action)}
.cx-form button[type=submit]{width:100%;font-size:1.05rem}
.fm-form-note{font-size:.82rem;color:var(--fm-muted);margin:0}
.fm-if-pro,.fm-if-part{display:block}
.cx-form:has(input[value="entreprise"]:checked) .fm-if-part{display:none}
.cx-form:has(input[value="particulier"]:checked) .fm-if-pro,.cx-form:has(input[value="artisan"]:checked) .fm-if-pro{display:none}
.cx-form:has(input[value="particulier"]:checked) .fm-if-rs,.cx-form:has(input[value="artisan"]:checked) .fm-if-rs{display:none}

/* Schéma de cycle */
.fm-figure{margin:1.4em 0;background:#fff;border:1px solid var(--fm-border);border-radius:var(--fm-r);padding:16px}
.fm-figure svg{width:100%;height:auto;display:block}
.fm-figure figcaption{font-size:.85rem;color:var(--fm-muted);margin-top:.6em}

/* Liens connexes */
.fm-related{display:grid;gap:10px;list-style:none;padding:0;margin:1em 0}
.fm-related a{display:block;padding:12px 16px;border:1px solid var(--fm-border);border-radius:8px;background:#fff;text-decoration:none;font-weight:600}
.fm-related a::after{content:" →";color:var(--fm-cta)}

/* En-tête */
.fm-header{background:#fff;border-bottom:1px solid var(--fm-border);position:relative;z-index:20;font-family:var(--fm-b)}
.fm-header__bar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:66px}
.fm-logo{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:var(--fm-primary);font-family:var(--fm-h);font-weight:700;font-size:1.15rem;letter-spacing:-.01em}
.fm-logo svg{width:34px;height:34px}
.fm-logo small{display:block;font-family:var(--fm-b);font-weight:500;font-size:.7rem;color:var(--fm-muted);letter-spacing:0}
.fm-nav{display:none}
.fm-menu{position:relative}
.fm-menu summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;font-family:var(--fm-h);font-weight:600;color:var(--fm-primary);border:1.5px solid var(--fm-border);border-radius:8px;padding:.5em .8em}
.fm-menu summary::-webkit-details-marker{display:none}
.fm-menu summary svg{width:20px;height:20px}
.fm-menu__panel{position:absolute;right:0;top:calc(100% + 8px);width:min(92vw,360px);background:#fff;border:1px solid var(--fm-border);border-radius:12px;box-shadow:var(--fm-shadow);padding:10px}
.fm-menu__panel a{display:block;padding:.65em .8em;border-radius:6px;text-decoration:none;color:var(--fm-ink);font-weight:500}
.fm-menu__panel a:hover{background:var(--fm-pale)}
.fm-menu__panel .fm-btn{display:flex;margin-top:8px;color:#fff}
.fm-header .fm-btn--cta{padding:.6em 1em;font-size:.95rem}
.fm-header__cta{display:none}

/* Pied de page */
.fm-footer{background:#011F2E;color:#BCD9E8;font-family:var(--fm-b);font-size:.92rem;padding:44px 0 24px}
.fm-footer a{color:#E9F4FA;text-decoration:none}
.fm-footer a:hover{text-decoration:underline}
.fm-footer__grid{display:grid;gap:26px}
.fm-footer h2{font-family:var(--fm-h);color:#fff;font-size:1rem;margin:0 0 .7em}
.fm-footer ul{list-style:none;padding:0;margin:0}
.fm-footer li{margin:.4em 0}
.fm-footer__legal{border-top:1px solid rgba(188,217,232,.2);margin-top:28px;padding-top:18px;font-size:.82rem;display:flex;flex-wrap:wrap;gap:8px 18px;justify-content:space-between}
.fm-footer .fm-logo{color:#fff}
.fm-footer .fm-logo small{color:#BCD9E8}

@media (min-width:700px){
  .fm-grid--2{grid-template-columns:repeat(2,1fr)}
  .fm-grid--3{grid-template-columns:repeat(2,1fr)}
  .fm-fiche dl{grid-template-columns:repeat(2,1fr)}
  .fm-paths{grid-template-columns:1fr 1fr}
  .fm-row{grid-template-columns:1fr 1fr}
  .fm-stats{grid-template-columns:repeat(4,1fr)}
  .fm-cats{grid-template-columns:1fr 1fr}
  .fm-related{grid-template-columns:1fr 1fr}
  .fm-footer__grid{grid-template-columns:repeat(2,1fr)}
  .fm-choice--inline{grid-template-columns:repeat(3,1fr)}
  .fm-cta-band{padding:40px 44px}
}
@media (min-width:1000px){
  .fm-section{padding:72px 0}
  .fm-hero{padding:36px 0 64px}
  .fm-hero__grid{grid-template-columns:1.15fr .85fr;align-items:start;gap:48px}
  .fm-grid--3{grid-template-columns:repeat(3,1fr)}
  .fm-grid--4{grid-template-columns:repeat(4,1fr)}
  .fm-fiche dl{grid-template-columns:repeat(4,1fr)}
  .fm-cols{grid-template-columns:1.6fr 1fr;align-items:start}
  .fm-nav{display:flex;gap:4px;align-items:center}
  .fm-nav a{padding:.5em .75em;border-radius:6px;text-decoration:none;color:var(--fm-ink);font-weight:500;font-size:.95rem}
  .fm-nav a:hover{background:var(--fm-pale);color:var(--fm-primary)}
  .fm-menu{display:none}
  .fm-header__cta{display:inline-flex}
  .fm-footer__grid{grid-template-columns:1.4fr 1fr 1fr 1fr}
  .fm-steps{grid-template-columns:repeat(4,1fr)}
  .fm-steps li{padding:64px 0 0}
  .fm-steps li:not(:last-child)::after{left:50px;right:-14px;top:22px;bottom:auto;width:auto;height:2px;background:repeating-linear-gradient(90deg,var(--fm-border) 0 6px,transparent 6px 10px)}
}
@media (prefers-reduced-motion:reduce){.fm-btn{transition:none}}
