
:root{
  --navy:#0a2f5a; --navy-2:#073b73; --blue:#0f6bbd; --sky:#eaf5ff; --green:#1d8a65;
  --gold:#ffb703; --ink:#102033; --muted:#5b6675; --line:#d9e3ee; --bg:#f6f9fc; --white:#fff;
  --shadow:0 18px 45px rgba(16,32,51,.10); --radius:22px;
}
*{box-sizing:border-box} html{scroll-behavior:smooth} body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);line-height:1.65} a{color:var(--blue);text-decoration:none} a:hover{text-decoration:underline}.container{width:min(1180px,calc(100% - 34px));margin-inline:auto}.topbar{background:#061f3d;color:#dceeff;font-size:.92rem}.topbar .container{display:flex;justify-content:space-between;gap:16px;padding:8px 0;flex-wrap:wrap}.navbar{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid rgba(217,227,238,.8)}.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:13px 0}.brand{display:flex;align-items:center;gap:12px;color:var(--navy);font-weight:800;letter-spacing:-.02em}.brand img{height:46px;width:auto}.brand span{display:block;font-size:.92rem;color:var(--muted);font-weight:650;letter-spacing:0}.nav-links{display:flex;align-items:center;gap:18px;font-weight:700;font-size:.94rem}.nav-links a{color:var(--ink)}.nav-links a.cta{background:var(--navy);color:#fff;padding:11px 16px;border-radius:999px;box-shadow:0 8px 22px rgba(10,47,90,.22)}.hero{position:relative;overflow:hidden;background:linear-gradient(115deg,rgba(5,38,75,.95),rgba(7,59,115,.83)),url('../img/header.jpg') center/cover no-repeat;color:#fff}.hero .container{min-height:610px;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:36px;padding:82px 0}.eyebrow{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.12);padding:8px 12px;border-radius:999px;font-weight:800;font-size:.9rem}.hero h1{font-size:clamp(2.3rem,5vw,4.8rem);line-height:1.02;margin:22px 0 18px;letter-spacing:-.06em}.hero p{font-size:1.18rem;color:#e7f2ff;max-width:720px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 18px;border-radius:14px;font-weight:800;border:1px solid transparent;transition:.18s ease}.btn-primary{background:var(--gold);color:#092542}.btn-secondary{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.28)}.btn-light{background:#fff;color:var(--navy);border-color:var(--line)}.hero-card{background:rgba(255,255,255,.95);color:var(--ink);border-radius:var(--radius);padding:26px;box-shadow:var(--shadow)}.hero-card h2{margin:0 0 16px;color:var(--navy);font-size:1.3rem}.event{display:flex;gap:14px;padding:14px 0;border-top:1px solid var(--line)}.event:first-of-type{border-top:0}.event b{display:block;color:var(--navy)}.icon{width:42px;height:42px;flex:0 0 42px;border-radius:14px;background:var(--sky);display:grid;place-items:center;color:var(--blue);font-weight:900}.section{padding:76px 0}.section.alt{background:#fff}.section-head{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px}.section h2{font-size:clamp(1.8rem,3vw,2.8rem);line-height:1.12;margin:0;color:var(--navy);letter-spacing:-.04em}.section-head p{max-width:660px;margin:10px 0 0;color:var(--muted)}.grid{display:grid;gap:20px}.grid-3{grid-template-columns:repeat(3,1fr)}.grid-2{grid-template-columns:repeat(2,1fr)}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:0 12px 32px rgba(16,32,51,.06)}.card h3{margin:0 0 10px;color:var(--navy);font-size:1.18rem}.card p{margin:0;color:var(--muted)}.step{position:relative;padding-left:76px}.step-number{position:absolute;left:22px;top:24px;width:38px;height:38px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:900}.notice{background:#fff7df;border:1px solid #ffe2a3;border-radius:var(--radius);padding:22px}.notice strong{color:#7b4b00}.school-grid{grid-template-columns:repeat(3,1fr)}.school-card{display:flex;flex-direction:column;gap:14px}.school-card .name{font-size:1.18rem;font-weight:900;color:var(--navy)}.meta{display:grid;gap:8px;color:var(--muted);font-size:.96rem}.dates{display:flex;flex-direction:column;gap:7px;margin-top:auto}.date-pill{background:var(--sky);border:1px solid #d2e9ff;color:#164b7c;border-radius:999px;padding:7px 10px;font-size:.86rem;font-weight:750}.doc-grid{grid-template-columns:repeat(3,1fr)}.doc{display:flex;flex-direction:column;gap:12px}.doc small{color:var(--muted)}.table-wrap{overflow:auto;border-radius:18px;border:1px solid var(--line);background:#fff}table{width:100%;border-collapse:collapse;min-width:760px}th,td{padding:14px 16px;text-align:left;border-bottom:1px solid var(--line)}th{background:var(--navy);color:#fff;font-size:.9rem;letter-spacing:.01em}td:first-child{font-weight:800;color:var(--navy)}.faq details{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 20px}.faq details+details{margin-top:12px}.faq summary{font-weight:850;color:var(--navy);cursor:pointer}.faq p{color:var(--muted);margin:12px 0 0}.contact{background:linear-gradient(135deg,var(--navy),var(--navy-2));color:#fff;border-radius:30px;padding:36px;display:grid;grid-template-columns:1.2fr .8fr;gap:24px;align-items:center}.contact h2{color:#fff}.contact p{color:#dceeff}.footer{padding:28px 0;color:#6c7888;font-size:.92rem}.mobile-toggle{display:none;border:0;background:var(--navy);color:#fff;border-radius:12px;padding:10px 12px;font-weight:900}@media(max-width:980px){.hero .container,.contact{grid-template-columns:1fr}.school-grid,.grid-3,.doc-grid{grid-template-columns:repeat(2,1fr)}.nav-links{display:none}.mobile-toggle{display:inline-flex}.nav-links.open{display:flex;position:absolute;left:17px;right:17px;top:74px;flex-direction:column;align-items:stretch;background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:var(--shadow)}.nav-links.open a.cta{color:#fff;text-align:center}}@media(max-width:640px){.topbar .container{display:none}.hero .container{min-height:auto;padding:54px 0}.hero-actions .btn{width:100%}.grid-2,.grid-3,.school-grid,.doc-grid{grid-template-columns:1fr}.section{padding:52px 0}.brand strong{font-size:.95rem}.brand img{height:38px}.section-head{display:block}.contact{padding:26px;border-radius:22px}}

/* Tableau calendrier IRISbox : pleine largeur, sans scroll horizontal */
.calendar-table {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
}

.calendar-table table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.calendar-table th,
.calendar-table td {
    width: 50%;
    white-space: normal;
}

/* Ajustements de lisibilité et d'espacement */
.card p,
.notice p,
.card li,
.notice li,
th,
td {
    line-height: 1.5;
}

.card p + p,
.notice p + p {
    margin-top: 12px;
}

.card ul,
.notice ul {
    margin: 12px 0 0;
    padding-left: 22px;
}

.card li,
.notice li {
    margin-bottom: 8px;
    color: var(--muted);
}

.card li:last-child,
.notice li:last-child {
    margin-bottom: 0;
}

.card li strong {
    color: var(--navy);
}

.grid + .table-wrap,
.grid + .demarche-panel,
.demarche-panel + .grid,
.demarche-subgrid + .demarche-last-steps,
#irisbox .grid + .table-wrap,
#ecoles .school-grid + .table-wrap {
    margin-top: 28px;
}

/* Section démarches : reprise fidèle de la procédure */
.demarche-intro-grid {
    align-items: stretch;
}

.demarche-card p a,
.inline-alert a {
    font-weight: 800;
}

.inline-alert {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
}

.inline-alert > strong {
    color: var(--navy);
}

.inline-alert ul {
    margin-top: 10px;
}

.demarche-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 12px 32px rgba(16,32,51,.06);
}

.demarche-panel h3 {
    margin: 0 0 16px;
    color: var(--navy);
    font-size: 1.25rem;
}

.priority-table,
.birth-table {
    border-radius: 16px;
}

.priority-table table,
.birth-table table,
.calendar-table table {
    width: 100%;
    min-width: 0;
}

.priority-table table {
    table-layout: fixed;
}

.priority-table th,
.priority-table td {
    vertical-align: top;
}

.priority-table th:nth-child(1),
.priority-table td:nth-child(1) {
    width: 13%;
}

.priority-table th:nth-child(2),
.priority-table td:nth-child(2) {
    width: 42%;
}

.priority-table th:nth-child(3),
.priority-table td:nth-child(3) {
    width: 25%;
}

.priority-table th:nth-child(4),
.priority-table td:nth-child(4) {
    width: 20%;
}

.priority-table td ul {
    margin: 0;
    padding-left: 18px;
}

.birth-table {
    margin-top: 16px;
    overflow-x: visible;
}

.birth-table table {
    table-layout: fixed;
}

.birth-table th,
.birth-table td,
.calendar-table th,
.calendar-table td {
    white-space: normal;
}

.demarche-note {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.demarche-note p {
    margin: 12px 0 0;
    color: #6a4500;
}

@media(max-width:760px){
    .priority-table {
        overflow-x: auto;
    }

    .priority-table table {
        min-width: 720px;
    }

    .step {
        padding-left: 68px;
    }
}

#irisbox .card p {
    margin-bottom: 14px;
}

#irisbox .card ul {
    margin: 12px 0 0;
    padding-left: 22px;
}

#irisbox .card li {
    margin-bottom: 8px;
    line-height: 1.55;
    color: var(--muted);
}

#irisbox .card li strong,
#irisbox .notice strong {
    color: var(--primary);
}

.irisbox-alert,
.irisbox-info {
    margin-top: 24px;
}

.irisbox-alert p,
.irisbox-info p {
    margin: 0 0 12px;
    line-height: 1.6;
}

.irisbox-alert p:last-child,
.irisbox-info p:last-child {
    margin-bottom: 0;
}

.calendar-table {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
    margin-top: 24px;
}

.calendar-table table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.calendar-table th,
.calendar-table td {
    white-space: normal;
}


.table-heading {
    margin: 48px 0 20px;
    padding: 24px 28px;
    border-left: 6px solid var(--primary);
    background: #f4f8fd;
    border-radius: 18px;
}

.table-heading span {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.table-heading h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.65rem;
}

.table-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.5;
}