/* Centre Mediabeclair : couleurs tirées du logo (marine et bleu). */
:root {
    --navy: #222248;
    --navy-soft: #4a4c6e;
    --blue: #2b69b3;
    --blue-dark: #1f5492;
    --blue-light: #a9cbf2;
    --tint: #eaf1f9;
    --pale: #f5f8fc;
    --line: #d9e3ef;
    --white: #ffffff;
    --alert: #a32a2a;
    --alert-bg: #fbeeee;

    --font-title: 'Poppins', 'Segoe UI', Arial, sans-serif;
    --font-text: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;

    --radius: 18px;
    --radius-small: 10px;
    --shadow: 0 18px 40px -22px rgba(34, 34, 72, .45);
    --header-height: 84px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --section: clamp(3.5rem, 8vw, 6rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--navy);
    font-family: var(--font-text);
    font-size: 1.125rem;
    line-height: 1.6;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
address,
dl,
dd {
    margin: 0;
    padding: 0;
}

ul,
ol {
    list-style: none;
}

address {
    font-style: normal;
}

h1,
h2,
h3 {
    color: var(--navy);
    font-family: var(--font-title);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
}

h2 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
}

h3 {
    font-size: 1.2rem;
    letter-spacing: -.01em;
}

a {
    color: var(--blue-dark);
    text-underline-offset: .18em;
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

.i {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vh {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 100;
    padding: .75rem 1.25rem;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-small);
}

.skip:focus {
    top: 1rem;
}

.wrap {
    width: min(100%, 1200px);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: var(--section);
}

.eyebrow {
    margin-bottom: .75rem;
    color: var(--blue);
    font-family: var(--font-title);
    font-size: .875rem;
    font-weight: 600;
}

.lead {
    color: var(--navy-soft);
    font-size: clamp(1.15rem, 2vw, 1.3rem);
}

.section-head {
    max-width: 44rem;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head .lead {
    margin-top: 1rem;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 48px;
    padding: .7rem 1.4rem;
    border: 2px solid transparent;
    border-radius: 999px;
    background: none;
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--blue-dark);
}

.btn-ghost {
    border-color: var(--blue);
    color: var(--blue-dark);
}

.btn-ghost:hover {
    background: var(--tint);
}

.btn-white {
    background: var(--white);
    color: var(--navy);
}

.btn-white:hover {
    background: var(--tint);
}

/* En-tête */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: var(--header-height);
}

.brand {
    flex: none;
}

.brand img {
    width: auto;
    height: 64px;
}

.site-nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(1rem, 2vw, 1.75rem);
}

.site-nav ul {
    display: flex;
    gap: clamp(1rem, 2vw, 1.75rem);
}

.site-nav ul a {
    display: block;
    padding-block: .5rem;
    color: var(--navy);
    font-family: var(--font-title);
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.site-nav ul a:hover,
.site-nav ul a[aria-current="page"] {
    color: var(--blue-dark);
    border-bottom-color: var(--blue);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--navy);
    font-family: var(--font-title);
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.nav-phone:hover {
    color: var(--blue-dark);
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    margin-left: auto;
    place-items: center;
    border: 0;
    border-radius: var(--radius-small);
    background: var(--tint);
    color: var(--navy);
    font-size: 1.1rem;
    cursor: pointer;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open {
    display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
    display: block;
}

/* Accueil */
.hero {
    padding-block: clamp(2.5rem, 6vw, 4.5rem) 0;
    background: linear-gradient(var(--pale) 0 calc(100% - 3.5rem), var(--white) 0);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.hero-tags li {
    padding: .3rem .85rem;
    border-radius: 999px;
    background: var(--tint);
    color: var(--blue-dark);
    font-family: var(--font-title);
    font-size: .85rem;
    font-weight: 500;
}

.hero h1 em {
    display: block;
    color: var(--blue);
    font-style: normal;
}

.pulse {
    width: min(100%, 340px);
    height: auto;
    margin-block: 1.25rem;
    fill: none;
    stroke: var(--blue);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2rem;
}

.hero-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}

.quick-info {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: clamp(2rem, 4vw, 3rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.quick-info > div {
    display: flex;
    gap: .9rem;
    padding: 1.4rem clamp(1rem, 2.5vw, 1.75rem);
}

.quick-info > div + div {
    border-left: 1px solid var(--line);
}

.quick-info .i {
    margin-top: .15rem;
    color: var(--blue);
    font-size: 1.15rem;
}

.quick-info h2 {
    margin-bottom: .2rem;
    font-size: 1rem;
    letter-spacing: 0;
}

.quick-info p,
.quick-info address {
    color: var(--navy-soft);
    font-size: 1.02rem;
    line-height: 1.45;
}

.quick-info a {
    color: inherit;
    font-weight: 600;
}

/* Engagements */
.promises-block {
    display: grid;
    grid-template-columns: .8fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    padding-block: clamp(3rem, 6vw, 4.5rem) 0;
}

.promises-photo img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: var(--radius);
}

.promises {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.promises > div {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
}

.promises > div .i {
    grid-row: span 2;
    margin: .1rem 0 0;
}

.promises .i {
    margin-bottom: .85rem;
    color: var(--blue);
    font-size: 1.5rem;
}

.promises h3 {
    margin-bottom: .25rem;
}

.promises p {
    color: var(--navy-soft);
}

/* Spécialités */
.poles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.pole-photo {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 1.5rem;
    object-fit: cover;
    border-radius: var(--radius);
}

.pole-title {
    padding-bottom: .9rem;
    border-bottom: 3px solid var(--blue);
    font-size: 1.35rem;
}

.care {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-block: 1.1rem;
    border-bottom: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
}

.care-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: none;
    place-items: center;
    border-radius: 12px;
    background: var(--tint);
    color: var(--blue-dark);
    transition: background-color .2s, color .2s;
}

.care-text {
    flex: 1;
    min-width: 0;
}

.care-text h4 {
    margin: 0;
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.3;
}

.care-text p {
    color: var(--navy-soft);
    font-size: 1.02rem;
    line-height: 1.4;
}

.care-go {
    flex: none;
    color: var(--blue);
    transition: transform .2s;
}

.care-call {
    flex: none;
    color: var(--blue-dark);
    font-family: var(--font-title);
    font-size: .85rem;
    font-weight: 500;
    white-space: nowrap;
}

a.care:hover .care-icon {
    background: var(--blue);
    color: var(--white);
}

a.care:hover .care-go {
    transform: translateX(4px);
}

/* Le centre */
.about {
    background: var(--pale);
}

.about-grid {
    display: grid;
    grid-template-columns: .8fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.about-photo figcaption {
    margin-top: .6rem;
    color: var(--navy-soft);
    font-size: 1rem;
}

.about-photo img {
    width: 100%;
    border-radius: var(--radius);
}

.about-text p {
    margin-top: 1rem;
    color: var(--navy-soft);
}

.checks {
    margin-top: 1.75rem;
}

.checks li {
    display: flex;
    gap: .7rem;
    padding-block: .35rem;
    font-weight: 600;
}

.checks .i {
    margin-top: .2rem;
    color: var(--blue);
    stroke-width: 2.4;
}

/* Visite */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.5vw, 1.75rem);
}

.gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}

.gallery figcaption {
    margin-top: .7rem;
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 500;
}

/* Équipe : renvoi depuis l'accueil */
.team-band {
    background: var(--navy);
    color: var(--white);
}

.team-band-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 3rem;
    padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.team-band h2 {
    color: var(--white);
}

.team-band p {
    margin-top: .5rem;
    color: #d5d9ea;
}

/* Infos pratiques */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: stretch;
}

.contact-list > div {
    display: flex;
    gap: 1rem;
    padding-block: 1.1rem;
    border-bottom: 1px solid var(--line);
}

.contact-list > div:first-child {
    padding-top: 0;
}

.contact-list .i {
    margin-top: .2rem;
    color: var(--blue);
    font-size: 1.1rem;
}

.contact-list dt {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 500;
}

.contact-list dd {
    color: var(--navy-soft);
}

.contact-body {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.hours li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 1rem;
    padding: .15rem .6rem;
    margin-inline: -.6rem;
    border-radius: 6px;
}

.hours li.today {
    background: var(--tint);
    color: var(--navy);
    font-weight: 600;
}

.urgent {
    display: flex;
    gap: .75rem;
    margin-top: 1.5rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-small);
    background: var(--alert-bg);
    color: var(--alert);
}

.urgent .i {
    margin-top: .2rem;
}

.urgent a {
    color: inherit;
    font-weight: 700;
}

.map {
    position: relative;
    display: flex;
    min-height: 460px;
    overflow: hidden;
    align-items: flex-end;
    border-radius: var(--radius);
    background: var(--navy);
}

.map > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--tint);
}

.map-panel {
    position: relative;
    width: 100%;
    margin: 1rem;
    padding: 1.25rem;
    border-radius: 14px;
    background: var(--white);
}

.map-panel p {
    margin-bottom: 1rem;
    color: var(--navy-soft);
    font-size: 1rem;
    line-height: 1.45;
}

.map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.js-only {
    display: none;
}

.js .js-only {
    display: inline-flex;
}

/* Pages intérieures */
.page-head {
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
    background: var(--pale);
}

.page-head .lead {
    max-width: 42rem;
    margin-top: 1rem;
}

.team-group + .team-group {
    margin-top: clamp(2.5rem, 6vw, 4rem);
}

.team-group h2 {
    padding-bottom: .9rem;
    border-bottom: 3px solid var(--blue);
    font-size: 1.5rem;
}

.team-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: clamp(1.5rem, 3vw, 2.5rem);
}

.team-list li {
    padding-block: 1.15rem;
    border-bottom: 1px solid var(--line);
}

.team-list h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.team-list p {
    margin-top: .15rem;
    color: var(--navy-soft);
    line-height: 1.35;
}

.page-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    margin-top: clamp(3rem, 6vw, 4.5rem);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--radius);
    background: var(--tint);
}

.page-cta h2 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.legal > * {
    max-width: 46rem;
}

.legal h2 {
    margin-top: 2.5rem;
    font-size: 1.35rem;
}

.legal h2:first-child {
    margin-top: 0;
}

.legal p,
.legal ul {
    margin-top: .75rem;
    color: var(--navy-soft);
}

.legal ul {
    padding-left: 1.2rem;
    list-style: disc;
}

.legal li {
    margin-top: .25rem;
}

/* Pied de page */
.site-footer {
    background: var(--navy);
    color: #d5d9ea;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem clamp(2rem, 6vw, 5rem);
    padding-block: clamp(3rem, 6vw, 4.5rem);
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
    padding: .6rem .8rem;
    border-radius: 12px;
    background: var(--white);
}

.footer-logo img {
    width: auto;
    height: 64px;
}

.site-footer h2 {
    margin-bottom: .75rem;
    color: var(--white);
    font-size: 1.05rem;
    letter-spacing: 0;
}

.site-footer a {
    color: var(--white);
}

.footer-links li {
    padding-block: .25rem;
}

.footer-links a {
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-bottom {
    padding-block: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .18);
    font-size: 1rem;
}

.site-footer :focus-visible,
.team-band :focus-visible {
    outline-color: var(--blue-light);
}

/* Barre d'action sur mobile */
.mobile-bar {
    display: none;
}

@media (max-width: 1080px) {
    .nav-phone {
        display: none;
    }
}

@media (max-width: 900px) {
    :root {
        --header-height: 72px;
    }

    body {
        padding-bottom: 72px;
    }

    .brand img {
        height: 54px;
    }

    .js .menu-toggle {
        display: grid;
    }

    .site-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .js .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        padding: .5rem var(--gutter) 1.5rem;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .js .site-nav.open {
        display: flex;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .site-nav ul a {
        padding-block: .85rem;
        border-bottom: 1px solid var(--line);
        font-size: 1.05rem;
    }

    .site-nav ul a:hover,
    .site-nav ul a[aria-current="page"] {
        border-bottom-color: var(--line);
    }

    .nav-actions {
        display: none;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    html:not(.js) .site-nav {
        flex-basis: 100%;
    }

    .hero-grid,
    .promises-block,
    .poles,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        background: var(--pale);
        padding-bottom: 2.5rem;
    }

    .about-photo img {
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .promises-photo img {
        aspect-ratio: 4 / 3;
        object-position: 50% 45%;
    }

    .team-list {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-grid > :first-child {
        grid-column: 1 / -1;
    }

    .mobile-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 40;
        display: grid;
        grid-template-columns: 1fr 1.4fr;
        gap: .6rem;
        padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
        background: var(--white);
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 680px) {
    .quick-info,
    .gallery {
        grid-template-columns: 1fr;
    }

    .quick-info > div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .team-list {
        grid-template-columns: 1fr;
    }

    .map {
        min-height: 400px;
    }

    .page-cta .btn,
    .team-band .btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media print {
    .site-header,
    .mobile-bar,
    .map {
        display: none;
    }
}
