/* ===== VARIABLES ===== */
:root {
    --green: #1f8451;
    --green-lt: #e8f5ee;
    --lightGreen: #09c969;
    --green-mid: #2fa86a;
    --navy: #1e293b;
    --blue: #3b82f6;
    --blueDark: #2563ab;
    --blue-lt: #eaf1fb;
    --teal: #0d7c79;
    --teal-lt: #e5f5f4;
    --gold: #b07d12;
    --yellow: #98f40e;
    --gold-lt: #fdf3dc;
    --purple: #6b3fa0;
    --purple-lt: #f2ecfb;
    --red: #b53030;
    --brown: #b33333;
    --beige: #c8b98a;
    --red-lt: #fbeaea;
    --gray-bg: #f0f2f5;
    --border: #dde3e9;
    --text: #1a1a2e;
    --dark: #000025;
    --text-soft: #5a6475;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0, 0, 0, .08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .12);
}

@page {
    size: A4 landscape;
    margin: 8mm 10mm;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
  font-style: normal;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h, 0px);
    z-index: 99;
    pointer-events: none;
}

.page {
    max-width: 1280px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
/* ===== HEADER ===== */
.site-header {
    background: var(--navy);
    border-radius: var(--radius);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 16px 40px;
    /* ← réduit, le grand padding était superflu */
}

.sectionSauve {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-header {
    padding: 7px 14px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: opacity .2s;
}

.btn-header:hover {
    opacity: .85;
}

.btn-header.save {
    background: var(--green);
    color: white;
}

.btn-header.load {
    background: #334155;
    color: white;
}

.btn-header.print {
    background: rgb(131, 131, 131);
    color: white;
}
.btn-header.export {
    background: #b3b4b4;
    color: white;
}
.sectS-header {
    background: rgba(255, 255, 255, .18);
    border: 1.5px solid rgba(255, 255, 255, .35);
    color: white;
    border-radius: 9px;
    padding: 9px 20px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .15s;
    white-space: nowrap;
    font-family: 'Lato', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sectS-header:hover {
    background: rgba(255, 255, 255, .3);
    transform: translateY(-1px);
}

.sectS-header.danger {
    background: rgba(180, 40, 40, .2);
    border-color: rgba(255, 120, 120, .4);
}

.sectS-header.danger:hover {
    background: rgba(180, 40, 40, .38);
}

/* Barre de progression sous le header */
.header-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, .12);
}

.header-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7fff9a, #00e5be);
    transition: width .5s ease;
    width: 0%;
}

/* ===== NAV STEPS ===== */
/* ===== STEPS NAV ===== */
.steps-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    border-radius: var(--radius);
}

.step-btn {
    position: relative;
    /* ← ancre pour la bulle */
    padding: 6px 13px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, .08);
    color: #cbd5e1;
    font-size: .8rem;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    transition: background .2s, color .2s, transform .15s;
    white-space: nowrap;

    /* Bulle de survol */
    --tip-text: '';
    /* rempli dynamiquement si besoin, ou statique */
}

.step-btn:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff;
    transform: translateY(-1px);
}

/* ─── état actif (section visible) ─── */
.step-btn.is-active {
    background: var(--green);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(31, 132, 81, .45);
}

/* ─── tooltip au survol ─── */
.step-btn::after {
    content: attr(data-tip);
    /* texte injecté via JS */
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(.85);
    transform-origin: bottom center;
    background: #1e293b;
    color: #f1f5f9;
    font-size: .72rem;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s, transform .18s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    z-index: 200;
    /* petite flèche */
    border-bottom: 6px solid transparent;
}

/* petite flèche sous la bulle */
.step-btn::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top: 5px solid #1e293b;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s;
    z-index: 201;
}

.step-btn:hover::after,
.step-btn:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* barre de progression */
.steps-nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.global-progress-bar {
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, .15);
    border-radius: 3px;
    overflow: hidden;
}

.global-progress-fill {
    height: 100%;
    background: var(--lightGreen);
    border-radius: 3px;
    width: 0%;
    transition: width .4s ease;
}

.global-progress-text {
    color: #94a3b8;
    font-size: .75rem;
    min-width: 48px;
    text-align: right;
}

/* ===== MAIN ===== */
.main-wrap {
    padding: 0 20px 60px;
}

/* ===== ÉTAPES ===== */
.etape {
    background: white;
    border-radius: var(--radius);
    padding: 30px 36px;
    margin: 1rem 0 2rem;
    box-shadow: var(--shadow);
    scroll-margin-top: 72px;
}

h1 {
    font-size: 3.2rem;
}

h2,
h3 {
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

h2 {
    font-size: 2.2rem;
    gap: 12px;
}

h3 {
    font-size: 2rem;
    margin: .8rem 0;
}

.step-badge {
    background: var(--green);
    color: white;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== SECTIONS — FADE IN / FADE OUT ===== */

/* État initial : invisible et légèrement décalée vers le bas */
.etape {
    /*  opacity: 0; */
    transform: translateY(24px);
    transition: opacity .55s ease, transform .55s ease;
    will-change: opacity, transform;
}
.invisible{display:none}

/* État visible : déclenché par l'IO via la classe .is-visible */
.etape.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Variante fadeOut : quand la section quitte le viewport vers le haut */
.etape.is-above {
    opacity: 0;
    transform: translateY(-18px);
    transition: opacity .35s ease, transform .35s ease;
}

.etape>p {
    margin-bottom: 10px;
    color: var(--text-soft);
    line-height: 1.6;
}

.etape>p a {
    color: var(--blue);
}

.etape ul {
    margin: 10px 0 14px 22px;
    color: var(--text-soft);
}

.etape ul li {
    margin-left: 35px;
}

.btnEtape {
    background: var(--green);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    transition: background .2s, transform .1s;
}

.btnEtape button:hover {
    background: var(--green-mid);
    transform: translateY(-1px);
}

/* ===== INFO BOX ===== */
.info-box {
    background: var(--blue-lt);
    border-left: 4px solid var(--blue);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 13px 18px;
    margin-bottom: 18px;
    font-size: .88rem;
    color: #1a3a6b;
    line-height: 1.6;
}

.info-box a {
    color: var(--blue);
}

.columns {
    columns: 4 200px;
    column-gap: 10px;
}

/* ===== PENSE-BÊTE GRID — MASONRY ===== */
.checkTitle {
    text-align: center;
    font-size: 2.6rem;
    color: #0d7c79;
    text-transform: uppercase;
    margin: 3rem 0 1rem;
    border-bottom: 1px dashed brown;
}

.penseBete-grid {
    columns: 4 280px;
    column-gap: 14px;
    orphans: 1;
    widows: 1;
}
.boutons-grid {
    columns: 5 120px;
    column-gap: 14px;
    orphans: 1;
    widows: 1;
    margin-top: 3rem;
}
.img-thumbnail {
  padding: 0.25rem;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
}
/* Chaque carte ne se coupe pas entre colonnes */
.sectionCheck {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    display: inline-block;
    /* nécessaire pour columns + break-inside */
    width: 100%;
    margin-bottom: 14px;
    box-sizing: border-box;

    /* Visuel */
    border-radius: 10px;
    padding: 14px 16px 10px;
    background: white;
    border-left: 4px solid var(--border);
    /* surcharge par data-theme */
    box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
    transition: box-shadow .2s, transform .15s;
}

.sectionCheck:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, .11);
    transform: translateY(-2px);
}

/* Titres compacts */

/* Labels checkbox compacts */
.sectionCheck label {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: .78rem;
    line-height: 1.35;
    padding: 3px 0;
    cursor: pointer;
    color: var(--text);
    border-radius: 4px;
    transition: background .15s;
}

.sectionCheck label:hover {
    background: rgba(0, 0, 0, .03);
}

.sectionCheck label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--theme-color, var(--green));
    width: 13px;
    height: 13px;
    cursor: pointer;
}

/* Textarea minimaliste */
.sectionCheck textarea {
    width: 100%;
    min-height: 48px;
    max-height: 120px;
    margin-top: 8px;
    padding: 6px 8px;
    font-size: .75rem;
    font-family: 'Lato', sans-serif;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--gray-bg);
    color: var(--text);
    resize: vertical;
    box-sizing: border-box;
    transition: border-color .2s, background .2s;
}

.sectionCheck textarea:focus {
    outline: none;
    border-color: var(--theme-color, var(--green));
    background: white;
}

/* ── Thèmes : border-left + couleur accent ── */
.sectionCheck[data-theme="green"] {
    --theme-color: var(--green);
    border-left-color: var(--green);
}

.sectionCheck[data-theme="blue"] {
    --theme-color: var(--blue);
    border-left-color: var(--blue);
}

.sectionCheck[data-theme="teal"] {
    --theme-color: var(--teal);
    border-left-color: var(--teal);
}

.sectionCheck[data-theme="gold"] {
    --theme-color: var(--gold);
    border-left-color: var(--gold);
}

.sectionCheck[data-theme="purple"] {
    --theme-color: var(--purple);
    border-left-color: var(--purple);
}

.sectionCheck[data-theme="red"] {
    --theme-color: var(--red);
    border-left-color: var(--red);
}

.sectionCheck[data-theme="brown"] {
    --theme-color: var(--brown);
    border-left-color: var(--brown);
}

.sectionCheck[data-theme="dark"] {
    --theme-color: var(--dark);
    border-left-color: var(--dark);
}

.sectionCheck[data-theme="lightGreen"] {
    --theme-color: var(--lightGreen);
    border-left-color: var(--lightGreen);
}

.sectionCheck[data-theme="yellow"] {
    --theme-color: var(--yellow);
    border-left-color: var(--yellow);
}

/* Fond légèrement teinté selon thème */
.sectionCheck[data-theme="green"] {
    background: #f9fdfa;
}

.sectionCheck[data-theme="blue"] {
    background: #f8fbff;
}

.sectionCheck[data-theme="teal"] {
    background: #f5fbfb;
}

.sectionCheck[data-theme="gold"] {
    background: #fdfaf3;
}

.sectionCheck[data-theme="purple"] {
    background: #faf7fd;
}

.sectionCheck[data-theme="red"] {
    background: #fdf7f7;
}

.sectionCheck[data-theme="brown"] {
    background: #fdf8f5;
}

.sectionCheck[data-theme="dark"] {
    background: #f6f7f9;
}

/* ── Barre de progression interne (optionnel) ── */
.check-progress {
    height: 3px;
    border-radius: 2px;
    background: var(--border);
    margin: 8px 0 4px;
    overflow: hidden;
}

.check-progress-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--theme-color, var(--green));
    width: 0%;
    transition: width .4s ease;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .penseBete-grid {
        columns: 3 240px;
    }
}

@media (max-width: 760px) {
    .penseBete-grid {
        columns: 2 200px;
    }
}

@media (max-width: 480px) {
    .penseBete-grid {
        columns: 1;
    }
}

/* ── Print : 3 colonnes fixes ── */
@media print {
    .sectionCheck {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

.ressources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.ressources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.ressource-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
       background: whitesmoke;
    margin: 14px 0;
    box-shadow: var(--shadow);
}

.ressource-card h4 {
    margin: 0 0 10px;
    font-size: 16px;
    color: var(--ink);
}

.ressource-card p {
    flex-grow: 1;
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink2);
}

/* ── Lien pleine largeur ── */
.ressource-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    padding: 10px;

    background: linear-gradient(135deg, #e8d5c4, #f0e0d0);
    border: 1px solid var(--border);
    border-radius: 6px;

    text-decoration: none;
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;

    transition: all 0.25s ease;
    position: relative;
}

.ressource-card a::before {
    content: '🔗';
}

.ressource-card a:hover {
    background: linear-gradient(135deg, #d9c4b5, #e8d8c8);
    border-color: var(--ink2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ── Tooltip ── */
.ressource-card a[data-tip]::after,
.ressource-card a[data-tip]::before {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
}

/* boîte */
.ressource-card a[data-tip]::after {
    content: attr(data-tip);
    bottom: calc(100% + 10px);
    padding: 8px 12px;

    background: #2c2c20;
    color: #f5f0e8;
    font-size: 12px;
    border-radius: 6px;

    white-space: nowrap;
}

/* flèche */
.ressource-card a[data-tip]::before {
    content: '';
    bottom: calc(100% + 4px);

    border: 6px solid transparent;
    border-top-color: #2c2c20;
}

/* hover */
.ressource-card a[data-tip]:hover::after,
.ressource-card a[data-tip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* ===== CHECKLIST SECTIONS ===== */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}


.sectionCheck {
    display: inline-block;
    width: 100%;
    margin: 0 0 10px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    background: white;
    box-shadow: var(--shadow);
    transition: border-color .2s;
}

.sectionCheck:hover {
    border-color: #b5c9dc;
}

.checkTitre .section {
    border-radius: var(--radius);
    padding: 18px;
    border: 1.5px solid var(--border);
    background: white;
    transition: box-shadow .2s, transform .15s;
}

.section:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.sectionCheck[data-theme="green"] {
    border: 3px solid var(--green);
}

.sectionCheck[data-theme="blue"] {
    border: 3px solid var(--blue);
}

.sectionCheck[data-theme="teal"] {
    border: 3px solid var(--teal);
}

.sectionCheck[data-theme="gold"] {
    border: 3px solid var(--gold);
}

.sectionCheck[data-theme="purple"] {
    border: 3px solid var(--purple);
}

.sectionCheck[data-theme="red"] {
    border: 3px solid var(--red);
}

.sectionCheck[data-theme="yellow"] {
    border: 3px solid var(--yellow);
}

.sectionCheck[data-theme="lightGreen"] {
    border: 3px solid var(--lightGreen);
}

.sectionCheck[data-theme="brown"] {
    border: 3px solid var(--brown);
}

.sectionCheck[data-theme="dark"] {
    border: 3px solid var(--dark);
}

.sectionCheck[data-theme="beige"] {
    border: 3px solid var(--beige);
}

.sectionCheck[data-theme="text-soft"] {
    border: 3px solid var(--text-soft);
}

.sectionCheck h2 {
    font-size: .92rem;
    font-weight: 700;

    display: flex;
    align-items: center;
    margin: 0;
}

.sectionCheck h3 {
    
    font-size: .82rem;
    font-weight: 700;
   margin: 0;
    display: flex;
    align-items: center;
    text-align: left;
}

.section[data-theme="green"] h2 {
    color: var(--green);
}

.section[data-theme="blue"] h2 {
    color: var(--blue);
}

.section[data-theme="teal"] h2 {
    color: var(--teal);
}

.section[data-theme="gold"] h2 {
    color: var(--gold);
}

.section[data-theme="purple"] h2 {
    color: var(--purple);
}

.section[data-theme="red"] h2 {
    color: var(--red);
}

.sectionCheck label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 0 7px;
    border-radius: 7px;
    cursor: pointer;
    font-size: .84rem;
    transition: background .15s;
    line-height: 1.35;
}

.sectionCheck .section label:hover {
    background: var(--gray-bg);
}

.sectionCheck .section label.checked {
    opacity: .55;
}

.sectionCheck .section label.checked span {
    text-decoration: line-through;
}

.sectionCheck label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--green);
    cursor: pointer;
}

.sectionCheck textarea {
    width: 100%;
    margin-top: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    resize: vertical;
    min-height: 94px;
    color: var(--text);
    background: var(--gray-bg);
    transition: border-color .2s, box-shadow .2s;
}

.textAreaCom {
    max-height: 4rem;
}

.section textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(31, 132, 81, .1);
    background: white;
}

/* ===== ÉTABLISSEMENT SEARCH ===== */
/* Styles pour l'autocomplétion (à coller dans votre section <style> existante) */
.autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    margin-top: 0.5rem;
}

.autocomplete.open {
    display: block;
}

.ac-item {
    padding: .75rem 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .75rem;
    border-bottom: 1px solid #e2e8f0;
    transition: background .15s;
}

.ac-item:last-child {
    border-bottom: none;
}

.ac-item:hover,
.ac-item.focused {
    background: #e0f2fe;
}

.ac-uai {
    font-family: 'Syne', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    color: #0ea5e9;
    background: #e0f2fe;
    padding: .2rem .55rem;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: .04em;
}

.ac-name-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.ac-name {
    font-weight: 500;
    font-size: .92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ac-loc {
    font-size: .75rem;
    color: #64748b;
    margin-top: .05rem;
}

.ac-type {
    font-size: .7rem;
    color: var(--teal);
    background: var(--teal-lt);
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: 4px;
}

.ac-empty {
    color: var(--text-soft);
    font-style: italic;
    cursor: default;
}

/* Style pour le champ de recherche */
.search-wrap {
    position: relative;
    margin-bottom: 2rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: .8rem 1rem .8rem 2.7rem;
    border: 3px solid #8e9004;
    border-radius: 8px;
    font-size: 1.8rem;
    transition: border-color .15s;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Iframe */
.iframe__container {
    position: relative;
    width: 100%;
    height: 80vh;
    z-index: 10;
    padding: 0.8rem;
    border-radius: 6px;
}

.iframe__container::before {
    display: block;
    padding-top: 0;
    content: "";
}

.iframe__container iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
}

/* Placeholder et loading */
#placeholder,
#ficheLoading {
    text-align: center;
    padding: 2rem 1rem;
    color: #64748b;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* ===== FICHE ÉTABLISSEMENT ===== */
#ficheEtab {
    margin-top: 16px;
    animation: fadeInUp .35s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fiche-section {
    border-top: 1.5px solid var(--border);
    padding-top: 14px;
    margin-top: 14px;
}

.fiche-section:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.fiche-section-title {
    
    font-size: .88rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 10px;
    letter-spacing: .02em;
}

.fiche-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px 16px;
}

.fiche-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fiche-label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.fiche-value {
    font-size: .9rem;
    color: var(--text);
    font-weight: 500;
}

/* ===== CARTE GÉOPORTAIL ===== */
.carte-wrap {
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow);
    margin-top: 8px;
    background: var(--gray-bg);
}

.carte-wrap iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: none;
}

.carte-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: white;
    border-top: 1px solid var(--border);
}

.carte-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .76rem;
    font-family: 'Lato', sans-serif;
    color: var(--blue);
    background: var(--blue-lt);
    border: 1px solid #c2d8f8;
    border-radius: 6px;
    padding: 4px 10px;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.carte-link-btn:hover {
    background: var(--blue);
    color: white;
}

.carte-link-btn.teal {
    color: var(--teal);
    background: var(--teal-lt);
    border-color: #a0d4d2;
}

.carte-link-btn.teal:hover {
    background: var(--teal);
    color: white;
}

.carte-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 320px;
    background: var(--gray-bg);
    color: var(--text-soft);
    font-size: .88rem;
    flex-direction: column;
    gap: 8px;
}

.carte-placeholder svg {
    opacity: .35;
}

/* Barre IPS */
.fiche-ips-bar-wrap {
    margin-top: 12px;
}

.fiche-ips-track {
    position: relative;
    height: 12px;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 40%, #22c55e 100%);
    border-radius: 99px;
    margin-bottom: 4px;
    overflow: visible;
}

.fiche-ips-fill {
    display: none;
}

.fiche-ips-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid var(--navy);
    border-radius: 50%;
    font-size: .65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    white-space: nowrap;
}

.fiche-ips-scale {
    display: flex;
    justify-content: space-between;
    font-size: .68rem;
    color: var(--text-soft);
    margin-top: 6px;
}

/* Badge REP / REP+ */
.fiche-badge-rep {
    display: inline-block;
    background: var(--red);
    color: white;
    font-size: .78rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: .06em;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ac-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: .85rem;
    border-bottom: 1px solid var(--gray-bg);
    transition: background .15s;
}

.ac-item:last-child {
    border-bottom: none;
}

.ac-item:hover,
.ac-item.focused {
    background: var(--green-lt);
}

.ac-item .ac-name {
    font-weight: 700;
    color: var(--text);
}

.ac-item .ac-meta {
    font-size: .77rem;
    color: var(--text-soft);
    margin-top: 2px;
}

/* Fiche */
#ficheLoading {
    display: none;
    text-align: center;
    padding: 18px;
    color: var(--text-soft);
    font-size: .85rem;
}

#fiche {
    margin-top: 16px;
}

.fiche-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.fiche-header {
    background: linear-gradient(90deg, var(--green), var(--teal));
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.fiche-name {
    
    font-size: 1.1rem;
    font-weight: 700;
}

.fiche-uai {
    font-size: .76rem;
    opacity: .85;
    margin-top: 3px;
}

.fiche-clear-btn {
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .4);
    color: white;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: .76rem;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    transition: background .2s;
}

.fiche-clear-btn:hover {
    background: rgba(255, 255, 255, .35);
}

.fiche-body {
    padding: 16px 20px;
}

.fiche-meta {
    font-size: .83rem;
    color: var(--text-soft);
    margin-bottom: 12px;
    line-height: 1.7;
}

.fiche-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.chip {
    border-radius: 20px;
    padding: 3px 10px;
    font-size: .74rem;
    font-weight: 600;
}

.chip-red {
    background: var(--red-lt);
    color: var(--red);
}

.chip-orange {
    background: var(--gold-lt);
    color: var(--gold);
}

.chip-blue {
    background: var(--blue-lt);
    color: var(--blue);
}

.chip-teal {
    background: var(--teal-lt);
    color: var(--teal);
}

.chip-green {
    background: var(--green-lt);
    color: var(--green);
}

.chip-purple {
    background: var(--purple-lt);
    color: var(--purple);
}

.fiche-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.fiche-kv {
    background: var(--gray-bg);
    border-radius: 8px;
    padding: 9px 13px;
}

.fk-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--text-soft);
    font-weight: 700;
}

.fk-val {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 2px;
}

.fiche-success {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--green);
    margin-top: 10px;
}

/* Saisie manuelle */
.manual-toggle {
    background: none;
    border: none;
    color: var(--text-soft);
    font-size: .78rem;
    cursor: pointer;
    text-decoration: underline;
    font-family: 'Lato', sans-serif;
    padding: 0;
    margin-top: 10px;
    display: block;
}

.manual-toggle:hover {
    color: var(--green);
}

.manual-block {
    display: none;
    margin-top: 12px;
    padding: 14px;
    background: white;
    border: 1.5px dashed var(--border);
    border-radius: 10px;
}

.manual-block.open {
    display: block;
}

.manual-block label {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-soft);
    margin-bottom: 5px;
    margin-top: 10px;
}

.manual-block label:first-child {
    margin-top: 0;
}

.manual-block input {
    width: 100%;
    padding: 9px 13px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: .88rem;
    font-family: 'Lato', sans-serif;
    background: var(--gray-bg);
}

.manual-block input:focus {
    outline: none;
    border-color: var(--green);
    background: white;
}

.manual-block .manual-help {
    font-size: .76rem;
    color: var(--text-soft);
    margin-top: 8px;
}

/* ===== DOCUMENTS PANEL ===== */
.docs-panel {
    background: var(--gold-lt);
    border: 1.5px solid #d4a520;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.docs-panel h3 {
    
    color: var(--gold);
    margin-bottom: 5px;
    font-size: .95rem;
}

.docs-panel>p {
    font-size: .8rem;
    color: var(--text-soft);
    margin-bottom: 12px !important;
}

.doc-cat {
    font-size: .71rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--text-soft);
    margin: 14px 0 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}

.doc-label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border-radius: 7px;
    cursor: pointer;
    font-size: .84rem;
    transition: background .15s;
}

.doc-label:hover {
    background: rgba(176, 125, 18, .08);
}

.doc-label.is-doc-checked {
    background: rgba(176, 125, 18, .12);
    font-weight: 600;
}

.doc-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--gold);
    cursor: pointer;
}

.docs-counter {
    margin-top: 14px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--gold);
    text-align: right;
}

/* ===== PROMPT PANEL ===== */
.prompt-intro {
    background: var(--blue-lt);
    border: 1px solid #b5cef0;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 2rem 0 2rem;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text);
}

.prompt-panel {
    background: var(--purple-lt);
    border: 1.5px solid var(--purple);
    border-radius: var(--radius);
    padding: 22px;
}

.prompt-panel h3 {
    
    color: var(--purple);
    font-size: 1rem;
    margin-bottom: 14px;
}

.prompt-type-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.prompt-tab {
    padding: 7px 15px;
    border-radius: 20px;
    border: 1.5px solid var(--purple);
    background: white;
    color: var(--purple);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: 'Lato', sans-serif;
}

.prompt-tab:hover {
    background: var(--purple-lt);
}

.prompt-tab.active {
    background: var(--purple);
    color: white;
    box-shadow: 0 2px 8px rgba(107, 63, 160, .3);
}

.prompt-axe-select {
    display: none;
    margin-bottom: 12px;
}

.prompt-axe-select.visible {
    display: block;
}

.prompt-axe-select select {
    width: 100%;
    padding: 9px 13px;
    border: 1.5px solid var(--purple);
    border-radius: 8px;
    font-size: .85rem;
    font-family: 'Lato', sans-serif;
    background: white;
    color: var(--text);
}

.prompt-actions {
    display: none;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.btn-generate { display: flex;
    align-items: center;
    justify-content: center;
    background: var(--purple);
    color: white;
    border: none;
    border-radius: 9px;
    padding: 10px 22px;
    font-size: 2.88rem;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    transition: background .2s, transform .1s;
    display: flex;
    align-items: center;
    letter-spacing: .02em;
    gap: 7px;
     box-shadow: 0 4px 14px rgba(13, 124, 121, .3);
    transition: transform .15s, box-shadow .2s, opacity .2s;
}

.btn-generate:hover {
    background: #572e8f;
    transform: translateY(-1px);
}

.btn-copy {
    background: white;
    color: var(--purple);
    border: 1.5px solid var(--purple);
    border-radius: 9px;
    padding: 10px 20px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 7px;
}

.btn-copy:hover {
    background: var(--purple-lt);
}

.btn-copy.copied {
    background: var(--green-lt);
    color: var(--green);
    border-color: var(--green);
}

.prompt-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.prompt-stat {
    background: white;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: .78rem;
    color: var(--text-soft);
    border: 1px solid var(--border);
}

#promptOutput {
    width: 100%;
    min-height: 510px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    font-family: 'Courier New', monospace;
    font-size: .78rem;
    line-height: 1.55;
    resize: vertical;
    background: white;
    color: var(--text);
    transition: border-color .2s;
}

#promptOutput:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(107, 63, 160, .1);
}

.ia-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 16px;
    align-items: start;
}

.ia-links {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ia-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    border: 1.5px solid transparent;
}

.ia-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
}

.ia-link.chatgpt {
    background: #10a37f;
    color: white;
}

.ia-link.claude {
    background: #d97706;
    color: white;
}

.ia-link.gemini {
    background: #4285f4;
    color: white;
}

.ia-link.mistral {
    background: #1a1a2e;
    color: white;
}

/* ===== PROMPT AXE PANEL ===== */
.prompt-axe-panel {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f5ee 100%);
    border: 1.5px solid var(--teal);
    border-radius: var(--radius);
    padding: 1.5rem 1.8rem 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: var(--shadow);
}

.prompt-axe-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.prompt-axe-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: .1rem;
}

.prompt-intro h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: .3rem;
}

.prompt-axe-header p {
    font-size: .85rem;
    color: var(--text-soft);
    line-height: 1.55;
}

.axe-select-wrap {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.axe-select-label {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--teal);
    font-family: 'Lato', sans-serif;
}

.axe-select {
    width: 100%;
    padding: .65rem 1rem;
    font-family: 'Lato', sans-serif;
    font-size: .92rem;
    color: var(--text);
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230d7c79' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .8rem center;
    padding-right: 2.5rem;
    transition: border-color .2s, box-shadow .2s;
}

.axe-select:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(13, 124, 121, .15);
}

/* ===== IMAGE ===== */
.imgILL {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 14px 0;
    box-shadow: var(--shadow);
}

.center-block {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.text-center {
    text-align: center;
}

/* ===== ESPACES ===== */
.space-20 {
    padding-top: 20px;
}

.space-30 {
    padding-top: 30px;
}

.space-50 {
    padding-top: 50px;
}

.source {
    font-size: 14px;
    color: rgb(135, 131, 131);
    font-style: italic;
}

a {
    color: darkorchid;
    text-decoration: none;
    border-bottom: 1px dashed var(--teal);
    padding-bottom: 1px;
    transition: color .2s, border-color .2s, background .2s;
    border-radius: 2px;
    padding: 0 2px 1px;
}

a:hover {
    color: white;
    background: var(--teal);
    border-bottom-color: transparent;
}

.right {
    text-align: right;
}

/* ===== SECTION 7 — RAPPEL DOCUMENTS ===== */
.ia-docs-reminder {
    background: var(--gold-lt);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 20px 0;
}
.ia-docs-reminder-title {
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 12px;
    font-size: 1rem;
}
.ia-docs-reminder-grid {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.ia-doc-step {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: .92rem;
    color: var(--text);
}
.ia-doc-step em {
    color: var(--text-soft);
    font-style: normal;
    font-size: .85rem;
}
.ia-doc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: var(--gold);
    color: white;
    border-radius: 50%;
    font-size: .78rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== SECTION 7 — BOUTONS IA ===== */
.ia-launchers {
    background: var(--blue-lt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px 0;
}
.ia-launchers-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--blueDark);
    margin-bottom: 14px;
}
.ia-launchers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 12px;
}
.ia-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: transform .15s, box-shadow .15s;
    text-align: center;
}
.ia-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.ia-btn-logo {
    font-size: 1.4rem;
    line-height: 1;
}
.ia-btn-name {
    font-weight: 700;
    font-size: 1rem;
}
.ia-btn-sub {
    font-size: .75rem;
    opacity: .85;
}

/* Couleurs par IA */
.ia-claude     { background: #c96442; }
.ia-chatgpt    { background: #10a37f; }
.ia-gemini     { background: #4285f4; }
.ia-mistral    { background: #ff6b2b; }
.ia-copilot    { background: #0078d4; }
.ia-perplexity { background: #20b2aa; }

.ia-launchers-tip {
    margin-top: 14px;
    font-size: .88rem;
    color: var(--text-soft);
    border-top: 1px dashed var(--border);
    padding-top: 12px;
}

/* ===== FOOTER ===== */
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-top: 1px solid #ddd;
    gap: 1rem;
    flex-wrap: wrap;
}

footer>div:first-child {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

footer img {
    height: 40px;
}

footer span {
    font-size: 0.8rem;
    color: #555;
}

.footerDate {
    font-size: 0.8rem;
    color: #888;
}

.ecrire {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #333;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
}

footer a:last-of-type:hover,
footer>div:last-child a:hover {
   
}

/* ===== PRINT ===== */
@media print {

    /* ── Masquer tous les éléments interactifs et de navigation ── */
    .steps-nav,
    .site-header,
    .btn-header,
    .btn-generate,
    .btn-copy,
    .btn-pdf,
    .ia-links,
    .search-wrap,
    #autocomplete,
    #ficheLoading,
    #placeholder,
    .carte-wrap,
    .carte-links,
    .fiche-clear-btn,
    button,
    .space-50,
    .space-30,
    footer .ecrire,
    .ressource-card a.step-btn,
    .penseBete-grid > div:has(button) {
        display: none !important;
    }

    /* ── Forcer la visibilité de TOUTES les sections ── */
    .etape,
    .etape.is-above,
    .etape:not(.is-visible),
    section.etape,
    .sectionCheck {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        visibility: visible !important;
    }

    /* ── Mise en page globale ── */
    html, body {
        background: white !important;
        font-size: 11pt;
        color: #000 !important;
    }

    .page {
        max-width: 100% !important;
    }

    .main-wrap {
        padding: 8px 16px 20px !important;
        margin: 0 !important;
    }

    /* ── Cards et sections ── */
    .etape {
        box-shadow: none !important;
        break-inside: avoid;
        page-break-before: auto;
        margin-bottom: 16px;
        border: 1px solid #dde3e9;
        padding: 16px !important;
    }

    .sectionCheck {
        box-shadow: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* ── Grids en impression ── */
    .penseBete-grid,
    .columns {
        columns: 2 !important;
    }

    .ressources-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        break-inside: avoid;
    }

    .ia-layout {
        display: block !important;
    }

    .docs-panel, .prompt-axe-panel {
        width: 100% !important;
        margin: 0 !important;
        page-break-before: auto;
    }

    /* ── Checkboxes : conserver les couleurs d'accentuation ── */
    input[type="checkbox"] {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* ── Sliders : cacher le curseur, afficher la valeur via .years ── */
    input[type="range"] {
        display: none !important;
    }

    .years, .status, .code, .label {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* ── Textareas : montrer le contenu ── */
    textarea {
        border: 1px solid #bbb !important;
        resize: none !important;
        overflow: visible !important;
        height: auto !important;
        min-height: 0 !important;
        white-space: pre-wrap !important;
        page-break-inside: avoid;
    }

    /* ── Prompt output ── */
    #promptOutput {
        height: auto !important;
        min-height: 60px !important;
        overflow: visible !important;
        font-size: 9pt !important;
        white-space: pre-wrap !important;
        font-family: 'Courier New', monospace !important;
        border: 1px solid #999 !important;
        background: #f9f9f9 !important;
        padding: 8px !important;
    }

    /* ── Iframes (cartes, CDI) : masquer ── */
    iframe,
    .iframe__container,
    .carte-wrap {
        display: none !important;
    }

    /* ── Couleurs sections ── */
    .step-badge,
    [data-theme] {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* ── Headers ── */
    h2 {
        page-break-after: avoid;
        break-after: avoid;
        font-size: 1.4rem !important;
    }

    h3 {
        page-break-after: avoid;
        break-after: avoid;
        font-size: 1.1rem !important;
    }

    /* ── Désherbage : afficher la grille de cartes ── */
    .grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        break-inside: avoid;
    }

    .card {
        break-inside: avoid;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }

    /* ── Résumé désherbage ── */
    .summary {
        break-inside: avoid;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }

    /* ── Footer ── */
    footer {
        border-top: 1px solid #ccc;
        font-size: 8pt;
        margin-top: 20px;
    }

    /* ── Introduction ── */
    .prompt-intro {
        font-size: 10pt !important;
    }

    /* ── Légende ── */
    .legend div {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* ── Image responsive ── */
    .imgILL {
        max-width: 60% !important;
        display: block;
        margin: 0 auto;
    }
}

/* ===== BOUTON PDF ===== */
.btn-header.pdf {
    background: #c0392b;
    color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 20px 16px;
    }

    .sectionSauve {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .etape {
        padding: 18px 16px;
    }

    .sections-grid {
        grid-template-columns: 1fr;
    }
}