/* EHPAD Les Mimosas — feuille de style du site */

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/montserrat.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/source-sans-3.woff2") format("woff2");
    font-weight: 200 900;
    font-display: swap;
}

:root {
    --sage: #5E8E6B;          /* vert de l'établissement */
    --sage-dark: #3F6B4B;     /* liens, boutons (contraste AA sur blanc) */
    --sage-deep: #24402D;     /* titres, pied de page */
    --sage-light: #E8F0EA;
    --slate: #454D4B;         /* bande d'en-tête (comme l'ancien site) */
    --mimosa: #F2C230;        /* jaune mimosa : accents */
    --mimosa-dark: #8A6A00;
    --cream: #FBFAF4;
    --white: #FFFFFF;
    --ink: #22302A;
    --ink-soft: #4A5A52;
    --line: #DDE5DF;
    --danger: #A4262C;
    --ok: #2E6B3E;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(36, 64, 45, .10);
    --display: "Montserrat", "Segoe UI", system-ui, sans-serif;
    --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    --header-h: 134px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
    margin: 0;
    font-family: var(--body);
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); text-underline-offset: .18em; }
a:hover { color: var(--sage-deep); }
:focus-visible { outline: 3px solid var(--mimosa); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--sage-deep); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(800px, 100% - 32px); }
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-title { position: relative; padding-bottom: .4em; }
.section-title::after { content: ""; display: block; width: 56px; height: 4px; background: var(--mimosa); border-radius: 2px; margin-top: .35em; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.link-more { font-weight: 600; margin-bottom: 1.4em; }
.muted { color: var(--ink-soft); }

/* Boutons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 10px 24px; border-radius: 999px; border: 2px solid transparent;
    font-family: var(--display); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
    transition: background .15s, color .15s, transform .15s;
}
.btn-accent { background: var(--sage-dark); color: var(--white); }
.btn-accent:hover { background: var(--sage-deep); color: var(--white); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--sage-dark); border-color: var(--sage-dark); }
.btn-ghost:hover { background: var(--sage-light); }

/* En-tête : bande sombre (logo blanc de l'établissement, coordonnées), puis menu */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.header-top { background: var(--slate); color: var(--white); }
.header-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; }
.header-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 0; font-size: .9rem; line-height: 1.35; }
.header-contact a { color: var(--white); text-decoration: none; }
.header-contact a:hover { color: var(--mimosa); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand-logo { max-height: 44px; width: auto; }
.brand-mark { font-size: 2rem; color: var(--mimosa); line-height: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; font-family: var(--display); }
.brand-text strong { font-size: 1.15rem; }
.brand-text small { font-size: .8rem; color: #D5DCD8; font-family: var(--body); }
.header-inner { display: flex; align-items: center; min-height: 46px; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-link {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px;
    font: 600 .98rem var(--display); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-link.is-active { color: var(--sage-dark); background: var(--sage-light); }
.nav-cta { background: var(--sage-dark); color: var(--white); }
.nav-cta:hover, .nav-cta.is-active { background: var(--sage-deep); color: var(--white); }
.caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.has-sub { position: relative; }
.sub {
    list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: none;
}
.has-sub.is-open .sub { display: block; animation: sub-in .14s ease-out; }
@keyframes sub-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .has-sub.is-open .sub { animation: none; } }
.sub a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.sub a:hover, .sub a[aria-current] { background: var(--sage-light); color: var(--sage-deep); }
.nav-toggle { display: none; }

@media (min-width: 1001px) {
    /* Pont invisible au-dessus du sous-menu : la souris ne « tombe » pas dans l'espace entre le bouton et le menu */
    .sub::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; }
}
@media (max-width: 1000px) {
    .header-contact { display: none; }
    .header-top-inner { min-height: 56px; }
    .brand-logo { max-height: 40px; }
    .header-inner { min-height: 0; }
    .nav-toggle {
        display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px;
        border: 2px solid var(--white); border-radius: 999px; background: transparent; color: var(--white);
        font: 600 1rem var(--display); cursor: pointer;
    }
    .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
    .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
    .nav { display: none; width: 100%; max-height: calc(100vh - 68px); overflow: auto; }
    .nav.is-open { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; padding: 10px 0 18px; gap: 2px; }
    .nav-link { width: 100%; justify-content: space-between; border-radius: 10px; padding: 12px 14px; font-size: 1.05rem; }
    .nav-cta { justify-content: center; margin-top: 8px; }
    .sub { position: static; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; }
}

/* Bandeaux */
.hero { position: relative; background: linear-gradient(135deg, var(--sage-deep), var(--sage)); color: var(--white); overflow: hidden; }
.hero-img, .page-head-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-image::after, .page-head.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,40,27,.78), rgba(20,40,27,.35)); }
.hero-inner { position: relative; z-index: 1; padding: clamp(72px, 12vw, 150px) 0; max-width: 760px; margin-left: max(16px, (100% - 1180px) / 2); }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.hero-lead { font-size: 1.3rem; margin-bottom: 1.4em; }
.hero .btn-accent { background: var(--mimosa); color: var(--sage-deep); }
.hero .btn-accent:hover { background: #ffd54f; color: var(--sage-deep); }

.page-head { position: relative; background: var(--sage-light); overflow: hidden; }
.page-head-inner { position: relative; z-index: 1; padding: clamp(36px, 6vw, 64px) 0; }
.page-head.has-image { color: var(--white); }
.page-head.has-image h1, .page-head.has-image a, .page-head.has-image .crumbs { color: var(--white); }
.page-head.has-image .page-head-inner { padding: clamp(64px, 10vw, 120px) 0; }
.page-head .lead { font-size: 1.2rem; max-width: 760px; }
.crumbs { font-size: .95rem; color: var(--ink-soft); margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.post-date { color: var(--ink-soft); }

/* Accueil avec photo : cercle en verre dépoli centré, cerclé d'un halo mimosa (repris de l'ancien site) */
.hero.has-image { min-height: min(80vh, 740px); display: flex; align-items: center; }
/* Bords de la photo assombris : le cercle ressort au centre */
.hero.has-image::after { background: radial-gradient(ellipse at center, rgba(20, 40, 27, 0) 30%, rgba(20, 40, 27, .45) 100%); }
.hero.has-image .hero-inner {
    margin: 48px auto; width: min(520px, 100% - 32px); aspect-ratio: 1; border-radius: 50%;
    background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(8px) saturate(1.15); backdrop-filter: blur(8px) saturate(1.15);
    box-shadow: 0 30px 80px rgba(20, 40, 27, .35);
    outline: 2px solid rgba(242, 194, 48, .85); outline-offset: 12px;
    color: var(--ink); text-align: center; padding: 56px 52px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    animation: hero-in .7s ease-out both;
}
@keyframes hero-in { from { opacity: 0; transform: scale(.94); } }
.hero.has-image h1 { color: var(--sage-deep); font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; margin-bottom: .35em; text-wrap: balance; }
/* Introduction en accroche : petites capitales espacées, soulignées d'un trait mimosa */
.hero.has-image .hero-lead { font: 600 .9rem/1.4 var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--sage-dark); margin-bottom: 1.6em; }
.hero.has-image .hero-lead p { margin: 0; }
.hero.has-image .hero-lead::after { content: ""; display: block; width: 44px; height: 3px; margin: 14px auto 0; border-radius: 2px; background: var(--mimosa); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero.has-image .btn-accent { background: var(--sage-dark); color: var(--white); }
.hero.has-image .btn-accent:hover { background: var(--sage-deep); color: var(--white); }
.hero.has-image .btn-ghost { background: rgba(255, 255, 255, .6); }
.hero.has-image .btn-ghost:hover { background: var(--white); }
.hero-icone { width: 96px; height: auto; margin-bottom: 14px; }
/* Accueil : la photo recule lentement, puis le contenu du cercle apparaît élément par élément */
.hero.has-image .hero-img { animation: hero-zoom 14s cubic-bezier(.2, .6, .2, 1) both; }
@keyframes hero-zoom { from { transform: scale(1.1); } }
.hero.has-image .hero-inner > * { animation: hero-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero.has-image .hero-inner > :nth-child(1) { animation-delay: .25s; }
.hero.has-image .hero-inner > :nth-child(2) { animation-delay: .38s; }
.hero.has-image .hero-inner > :nth-child(3) { animation-delay: .5s; }
.hero.has-image .hero-inner > :nth-child(4) { animation-delay: .62s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } }
/* Halo mimosa qui « respire » doucement autour du cercle */
.hero.has-image .hero-inner::before {
    content: ""; position: absolute; inset: -12px; border-radius: inherit; pointer-events: none;
    box-shadow: 0 0 0 0 rgba(242, 194, 48, .45); animation: hero-halo 3.2s ease-out 1.2s 2;
}
@keyframes hero-halo { to { box-shadow: 0 0 0 26px rgba(242, 194, 48, 0); } }
@media (prefers-reduced-motion: reduce) {
    .hero.has-image .hero-inner, .hero.has-image .hero-img, .hero.has-image .hero-inner > *, .hero.has-image .hero-inner::before { animation: none; }
}

/* Apparition au défilement (accueil). Classe posée par le JS seulement : sans JS, tout reste visible */
.js-reveal [data-reveal] {
    opacity: 0; transform: translateY(26px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--i, 0) * 110ms);
}
.js-reveal [data-reveal="left"] { transform: translateX(-36px); }
.js-reveal [data-reveal="right"] { transform: translateX(36px); }
.js-reveal [data-reveal="zoom"] { transform: scale(.96); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }
.chiffres-list strong { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
    .hero.has-image .hero-inner { aspect-ratio: auto; border-radius: 24px; padding: 32px 22px; outline-offset: 6px; }
    .hero-icone { width: 76px; }
}

/* Chiffres clés */
.chiffres { background: var(--white); border-bottom: 1px solid var(--line); }
.chiffres-list { list-style: none; margin: 0 auto; padding: 28px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; text-align: center; }
.chiffres-list strong { display: block; font: 700 2.4rem var(--display); color: var(--sage-dark); line-height: 1.1; }
.chiffres-list span { color: var(--ink-soft); }

/* Blocs de contenu */
.bloc { padding: clamp(32px, 5vw, 56px) 0; }
.bloc:nth-child(even) { background: var(--white); }
.bloc-inner { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.bloc.has-image .bloc-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.bloc.image-right .bloc-figure { order: 2; }
.bloc-figure { margin: 0; }
.bloc-figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; max-height: 520px; }
.bloc:not(.has-image) .bloc-text { max-width: 820px; }
@media (max-width: 760px) {
    .bloc.has-image .bloc-inner { grid-template-columns: 1fr; }
    .bloc.image-right .bloc-figure { order: 0; }
}
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--sage); }

/* Galerie et visionneuse */
.galerie { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.galerie a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sage-light); }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.galerie a:hover img { transform: scale(1.04); }
.galerie-caption { display: block; font-size: .92rem; color: var(--ink-soft); margin-top: 6px; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 20, 14, .92); display: flex; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 8px; }
.lightbox p { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: var(--white); margin: 0; }
.lightbox button { position: absolute; background: rgba(255,255,255,.14); color: var(--white); border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 1.6rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.3); }
.lb-close { top: 12px; right: 12px; } .lb-prev { left: 12px; top: 50%; } .lb-next { right: 12px; top: 50%; }

/* Documents */
.documents { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.documents a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 600; }
.documents a:hover { border-color: var(--sage); }
.doc-icon { flex: none; font: 700 .75rem var(--display); background: var(--danger); color: var(--white); border-radius: 6px; padding: 6px 7px; }

/* Tarifs */
.table-wrap { overflow-x: auto; margin-bottom: 1.5em; }
.table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--sage-dark); color: var(--white); font-family: var(--display); font-size: .95rem; }
.table tbody th { font-weight: 600; }
.table-narrow { max-width: 520px; }
.note { color: var(--ink-soft); }
.tarifs-section { background: var(--white); }
.tarifs-date { color: var(--ink-soft); margin-top: -.6em; }
.tarifs-grid.has-aside { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .tarifs-grid.has-aside { grid-template-columns: 1fr; } }
.aides-card { background: var(--sage-light); border-radius: var(--radius); padding: 24px; border-top: 5px solid var(--mimosa); }
.aides-card .prose p:last-child, .aides-card .prose ul:last-child { margin-bottom: 0; }

/* Étapes numérotées (frise verticale) */
.etapes-section { background: var(--white); }
.etapes { list-style: none; counter-reset: etape; margin: 0; padding: 0; max-width: 760px; }
.etapes li { counter-increment: etape; position: relative; padding: 0 0 26px 64px; }
.etapes li::before {
    content: counter(etape); position: absolute; left: 0; top: -4px; width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center; background: var(--sage-dark); color: var(--white); font: 700 1.15rem var(--display);
}
.etapes li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.etapes h3 { margin-bottom: .2em; }
.etapes .prose p:last-child { margin-bottom: 0; }
.etapes-cta { margin: 8px 0 0 64px; }
@media (max-width: 480px) { .etapes-cta { margin-left: 0; } }

/* Logos partenaires */
.logos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.logos li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 18px; min-height: 120px; text-align: center; }
.logos img { max-height: 80px; width: auto; }

/* Actualités */
.news-section { background: var(--white); }
.cards { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.card-img { aspect-ratio: 16 / 10; background: var(--sage-light); display: flex; align-items: center; justify-content: center; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img-empty { font-size: 3rem; color: var(--mimosa); }
.card-body { padding: 18px 20px 22px; }
.card-body time { font-size: .9rem; color: var(--ink-soft); }
.card-body h3 { margin: .3em 0 .4em; color: var(--sage-deep); }
.card-body p { margin: 0; color: var(--ink-soft); }
.post-figure { margin: 0 0 28px; }
.post-figure img { border-radius: var(--radius); width: 100%; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pagination .is-disabled { color: #9aa79f; }

/* Témoignages */
.temoignages-section { background: var(--sage-light); }
.temoignages { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.temoignage { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; }
.temoignage blockquote { margin: 0 0 16px; position: relative; padding-top: 18px; }
.temoignage blockquote::before { content: "“"; position: absolute; top: -18px; left: -4px; font: 700 3.2rem/1 var(--display); color: var(--mimosa); }
.temoignage-who { display: flex; align-items: center; gap: 12px; }
.temoignage-who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.temoignage-who p { margin: 0; line-height: 1.3; }
.temoignage-who span { color: var(--ink-soft); font-size: .95rem; }
/* Parties et cartes (Notre équipe, Les services…) */
.poles-nav { background: var(--white); border-bottom: 1px solid var(--line); }
.poles-nav ul { list-style: none; margin-block: 0; padding: 14px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.poles-nav a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--sage-light); color: var(--sage-deep); font: 600 .98rem var(--display); text-decoration: none; }
.poles-nav a:hover { background: var(--sage); color: var(--white); }
.pole-alt { background: var(--white); }
.pole-head { max-width: 760px; margin-bottom: 28px; }
.pole-head.has-photo { max-width: none; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.pole-head:last-child { margin-bottom: 0; }
.pole-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 760px) { .pole-head.has-photo { grid-template-columns: 1fr; } }
.pole-intro { font-size: 1.15rem; color: var(--ink-soft); }
.pole-intro p:last-child, .pole-intro ul:last-child { margin-bottom: 0; }
.metiers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.metier { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.pole-alt .metier { background: var(--cream); }
.metier:not(.has-photo) { border-top: 5px solid var(--mimosa); }
.metier-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.cartes-logos .metier-photo { aspect-ratio: 16 / 9; object-fit: contain; object-position: center; padding: 22px 32px; background: var(--white); border-bottom: 1px solid var(--line); }
.metier-body { padding: 20px 22px 8px; }
.metier-body h3 { margin-bottom: .4em; }
.metier-body .prose { font-size: 1.05rem; }
/* Encart d'appel clair en fin de page : se détache du pied de page vert foncé */
.accueil-band { background: var(--cream); }
.accueil-card {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 48px;
    background: var(--sage-light); border-left: 6px solid var(--mimosa); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
}
.accueil-card h2 { margin-bottom: .3em; }
.accueil-text { margin: 0; color: var(--ink-soft); max-width: 560px; }
.accueil-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.accueil-card .btn-ghost { background: var(--white); }

.temoignages-band { position: relative; display: block; overflow: hidden; color: var(--white); text-decoration: none; text-align: center; }
.temoignages-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.temoignages-band::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.temoignages-band .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; padding: clamp(64px, 10vw, 140px) 16px; }
.temoignages-band strong { font: 600 clamp(1.8rem, 4.5vw, 2.8rem)/1.2 var(--display); }
.temoignages-band span span { font-size: clamp(1.05rem, 2vw, 1.3rem); }
.temoignages-band:hover { color: var(--white); }
.temoignages-band:hover img { transform: scale(1.03); }

/* Offres d'emploi */
.empty-note { text-align: center; font-size: 1.15rem; color: var(--ink-soft); margin: 0; }

/* Mot d'accueil signé (offres d'emploi) */
.mot-section { background: var(--white); }
.mot { margin: 0; max-width: 860px; display: grid; gap: clamp(20px, 4vw, 40px); align-items: center; }
.mot.has-photo { grid-template-columns: 160px minmax(0, 1fr); }
.mot-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; object-position: center 25%; box-shadow: var(--shadow); border: 4px solid var(--sage-light); }
.mot blockquote { margin: 0 0 .8em; position: relative; padding-left: 20px; border-left: 4px solid var(--mimosa); font-size: 1.15rem; }
.mot blockquote p:last-child { margin-bottom: 0; }
.mot figcaption { font-weight: 600; color: var(--sage-dark); padding-left: 24px; }
@media (max-width: 600px) { .mot.has-photo { grid-template-columns: 1fr; justify-items: start; } .mot-photo { width: 120px; height: 120px; } }

.offres { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.offre { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--mimosa); border-radius: 12px; padding: 22px 24px; }
.offre-contrat { font-weight: 600; color: var(--sage-dark); }

/* Bandeau d'appel */
/* Bandeau d'appel (fin de page) : carte claire, comme l'encart d'accueil, pour ne pas se fondre dans le pied de page */
.cta-band { background: var(--cream); }
.cta-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    background: var(--sage-light); border-left: 6px solid var(--mimosa); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
}
.cta-inner p { margin: 0; font: 600 1.2rem/1.4 var(--display); color: var(--sage-deep); max-width: 640px; }

/* Formulaires */
.form-section { background: var(--white); }
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field small { font-weight: 400; color: var(--ink-soft); }
.req { color: var(--danger); }
input[type=text], input:not([type]), input[type=email], input[type=tel], select, textarea {
    width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink);
    background: var(--white); border: 2px solid #A9BBB0; border-radius: 10px;
}
input[type=file] { font: inherit; padding: 8px 0; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--sage-dark); outline: 3px solid rgba(94,142,107,.3); outline-offset: 0; }
[aria-invalid=true] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-weight: 600; margin: 0; font-size: .95rem; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--sage-dark); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: 10px; font-weight: 600; }
.alert-ok { background: #E3F2E6; color: var(--ok); border: 1px solid #B8DCC0; }
.alert-err { background: #FBE9EA; color: var(--danger); border: 1px solid #F1C3C6; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--sage-light); border-radius: var(--radius); padding: 24px; }
.contact-card h2 { font-size: 1.4rem; }
.contact-card h3 { font-size: 1.1rem; margin-top: 1.2em; }
.contact-line { font-weight: 700; font-size: 1.15rem; }

/* Pied de page */
.site-footer { background: var(--sage-deep); color: #E3ECE5; margin-top: 0; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; padding: 48px 0 32px; }
.footer-name { font: 700 1.3rem var(--display); color: var(--white); }
.footer-title { font-size: 1rem; color: var(--mimosa); text-transform: uppercase; letter-spacing: .06em; }
.footer-text { color: #CFDCD3; }

/* Horaires : jour, matin, après-midi alignés en colonnes ; jour actuel mis en avant */
.horaires { display: grid; grid-template-columns: auto auto auto; column-gap: 18px; margin: 0; font-variant-numeric: tabular-nums; }
.horaires-row { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; padding: 6px 10px; margin-inline: -10px; border-radius: 8px; }
.horaires-row + .horaires-row { border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.horaires dt { font-weight: 600; }
.horaires dd { display: contents; margin: 0; }
.horaires dd span { white-space: nowrap; }
.horaires-note dd { display: block; grid-column: 1 / -1; font-style: italic; }
.horaires-row.is-today { background: color-mix(in srgb, currentColor 10%, transparent); border-top-color: transparent; }
.horaires-row.is-today + .horaires-row { border-top-color: transparent; }
.horaires-row.is-today dt::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--mimosa); vertical-align: .1em; }
.site-footer .horaires { color: #CFDCD3; }
.site-footer .horaires dt, .site-footer .horaires-row.is-today { color: var(--white); }
.contact-card .horaires { margin-bottom: 1em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.15); padding: 18px 0 28px; font-size: .95rem; }
.footer-bottom p { margin: 0; }
.footer-links { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; margin: 0; padding: 0; }

.error-page { text-align: center; padding: 40px 0; }

@media print {
    .site-header, .site-footer, .nav-toggle, .btn { display: none !important; }
    body { background: #fff; }
}
