/* ============================================================
   Thème Écus des P'tits Feuillantins
   Design tokens
   ============================================================ */
:root {
    --green: #1C6C51;
    --green-soft: #6FC191;
    --orange: #EC774B;
    --yellow: #EDBF47;
    --cream: #FBF9F3;
    --ink: #343434;
    --gray: #5F5F5F;
    --white: #FFFFFF;

    --font-display: 'Love Ya Like A Sister', cursive;
    --font-body: 'Source Sans Pro', sans-serif;

    --radius-card: 28px;
    --radius-img: 32px;

    --container: 1200px;
    --shadow-card: 0 10px 30px rgba(28, 108, 81, .18);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--gray);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--orange); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 1.5rem;
}

p { margin: 0 0 1.2rem; }

.wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Boutons pilule */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: 17px 40px;
    border: 0;
    border-radius: 999px;
    background: var(--orange);
    color: var(--white) !important;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}
.btn:hover { background: var(--green); transform: translateY(-2px); }
.btn--yellow { background: var(--yellow); }
.btn--yellow:hover { background: var(--orange); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Icônes SVG inline */
.ico { width: 16px; height: 16px; fill: currentColor; flex: none; }
.ico--lg { width: 22px; height: 22px; }

/* ---------- Header ---------- */
.site-topbar {
    background: var(--green);
    color: var(--white);
    font-size: .95rem;
}
.site-topbar .wrap {
    display: flex;
    gap: 2.5rem;
    padding-top: 10px;
    padding-bottom: 10px;
}
.site-topbar span { display: inline-flex; align-items: center; gap: .55rem; }

.site-header {
    background: var(--cream);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(52, 52, 52, .06);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 14px;
    padding-bottom: 14px;
}
.site-logo img { max-width: 240px; width: auto; }
.site-logo { flex: none; }

.site-nav { margin-left: auto; }
.site-nav ul {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav a {
    color: var(--ink);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.site-nav a:hover { color: var(--orange); }

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}
.site-header-actions .btn { padding: 12px 28px; font-size: .9rem; }

.site-socials { display: flex; gap: .6rem; }
.site-socials:empty { display: none; }
.site-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    transition: background .25s ease;
}
.site-socials a:hover { background: var(--orange); }
.site-socials svg { width: 16px; height: 16px; fill: currentColor; }

.nav-burger {
    display: none;
    margin-left: auto;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.nav-burger span {
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: var(--ink);
    margin: 5px 0;
    transition: transform .25s ease, opacity .25s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28, 108, 81, .18), rgba(28, 108, 81, .45));
}
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 90px 24px 140px;
}
.hero-title {
    color: var(--white);
    font-size: clamp(3rem, 8vw, 6.5rem);
    margin-bottom: 1.2rem;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .35);
}
.hero-sub {
    color: var(--white);
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 2.4rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}
.hero-deco {
    position: absolute;
    z-index: 1;
    bottom: 0;
    pointer-events: none;
}
.hero-deco--left { left: 2%; max-width: 300px; }
.hero-deco--right { right: 2%; max-width: 240px; }

/* ---------- Bande Actualités (fond vert) ---------- */
.news-band {
    background: var(--green);
    color: var(--white);
    padding: 90px 0 100px;
}
.news-band .section-title { color: var(--white); }
.section-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    text-align: center;
}
.section-title em {
    font-style: normal;
    border-bottom: 5px double currentColor;
    border-radius: 4px;
    padding-bottom: 2px;
}
.news-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
    font-size: 1.1rem;
}
.news-intro strong { color: var(--white); }

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.news-col { text-align: center; }
.news-col h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1.6rem;
}
.news-col figure { margin: 0 0 1.8rem; }
.news-col img {
    width: 100%;
    border-radius: var(--radius-img);
    box-shadow: var(--shadow-card);
}
.news-col .news-text { text-align: left; font-size: 1.05rem; }
.news-col .news-text strong { color: var(--white); }
.news-band .btn { margin-top: 1.2rem; }
.news-band-footer { text-align: center; margin-top: 3.5rem; }

/* ---------- Section image + texte ---------- */
.split {
    padding: 100px 0;
    background: var(--white);
}
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
}
.split-grid.is-reversed .split-media { order: 2; }
.split-media img {
    width: 100%;
    border-radius: var(--radius-img);
    box-shadow: var(--shadow-card);
}
.split-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    margin-bottom: 1.6rem;
}
.split-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}
.split-content ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: .5rem;
}
.split-content ul li::before {
    content: "👉";
    position: absolute;
    left: 0;
    top: 0;
}
.split-content .btn { margin-top: .6rem; }
.split--center .split-content .btn { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }

/* ---------- Bande Adhérer ---------- */
.join-band { padding: 100px 0 40px; background: var(--white); }
.join-heading {
    text-align: right;
    max-width: 760px;
    margin: 0 0 4rem auto;
}
.join-eyebrow {
    display: block;
    color: var(--orange);
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: .6rem;
}
.join-heading h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1.2rem; }
.join-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    align-items: stretch;
}
.join-card {
    background: var(--green-soft);
    border-radius: var(--radius-card) 0 0 var(--radius-card);
    padding: 70px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--white);
}
.join-card p { color: var(--white); font-size: 1.12rem; }
.join-card .btn { margin-top: 1.4rem; }
.join-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

/* ---------- Témoignages ---------- */
.testimonials { padding: 40px 0 110px; background: var(--white); }
.testi-carousel { position: relative; max-width: 720px; margin: 0 auto; text-align: center; }
.testi-slide { display: none; }
.testi-slide.is-active { display: block; animation: testiFade .5s ease; }
@keyframes testiFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.testi-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--gray);
    margin-bottom: 2rem;
}
.testi-person { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.testi-person img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--cream);
    box-shadow: 0 6px 18px rgba(52, 52, 52, .15);
}
.testi-name { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); }
.testi-role { font-size: .95rem; }
.testi-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    margin-top: 2.2rem;
}
.testi-arrow {
    background: none;
    border: 2px solid var(--green-soft);
    color: var(--green);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: background .25s ease, color .25s ease;
}
.testi-arrow:hover { background: var(--green); color: var(--white); }
.testi-dots { display: flex; gap: .5rem; }
.testi-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: #D8D2C4;
    cursor: pointer;
}
.testi-dot.is-active { background: var(--orange); }

/* ---------- Bande Contact ---------- */
.contact-band {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    text-align: center;
}
.contact-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(28, 108, 81, .55);
}
.contact-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.contact-inner h2 {
    color: var(--white);
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    margin-bottom: 1.8rem;
}
.contact-inner p { color: var(--white); font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream); padding: 80px 0 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr;
    gap: 3.5rem;
    padding-bottom: 60px;
}
.footer-brand h4 {
    font-size: 1.7rem;
    margin-bottom: .8rem;
}
.footer-col h5 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ink);
    margin: 0 0 1.2rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .7rem; }
.footer-col a, .footer-col span { color: var(--gray); display: inline-flex; align-items: center; gap: .6rem; }
.footer-col a:hover { color: var(--orange); }
.footer-col .ico { fill: var(--green-soft); width: 12px; height: 12px; }
.footer-bottom {
    border-top: 1px solid #ECE5D6;
    padding: 22px 0;
}
.footer-bottom .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-legal { display: flex; align-items: center; gap: .8rem; font-size: .95rem; }
.footer-legal .ico { width: 6px; height: 6px; fill: var(--gray); }
.footer-bottom .site-socials a { width: 34px; height: 34px; }

/* ---------- Blocks communs (common.*) ---------- */
.block-title { margin-bottom: 1.5rem; }
.block-title-heading { margin: 0 0 .5rem; font-size: 2rem; }
.block-title-subtitle { color: var(--gray); margin: 0; }
.block-title[data-align="center"] { text-align: center; }

.block-text { line-height: 1.7; max-width: 760px; }
.block-text[data-align="center"] { margin-left: auto; margin-right: auto; text-align: center; }

.block-image { margin: 1.5rem 0; }
.block-image-media { width: 100%; height: auto; display: block; border-radius: var(--radius-img); }
.block-image-caption { font-size: .85rem; color: var(--gray); margin-top: .5rem; }

.block-form-wrap { max-width: 640px; margin: 2rem auto; }
.block-form-field { margin-bottom: 1rem; }
.block-form-label { display: block; margin-bottom: .25rem; font-weight: 600; color: var(--ink); }
.block-form-input {
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid #DDD6C8;
    border-radius: 14px;
    background: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
}
.block-form-input:focus { outline: 2px solid var(--green-soft); border-color: transparent; }
.block-form-submit {
    padding: .9rem 2.2rem;
    border: 0;
    border-radius: 999px;
    background: var(--orange);
    color: var(--white);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}
.block-form-submit:hover { background: var(--green); }
.form-message-success, .form-message-error { display: none; margin: 1rem 0; padding: 1rem 1.2rem; border-radius: 14px; }
.form-message-success.is-visible, .form-message-error.is-visible { display: block; }
.form-message-success { background: #E4F4EB; color: var(--green); }
.form-message-error { background: #FBE7E0; color: #B34A2E; }

/* ---------- Hero de page intérieure ---------- */
.page-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 220px 24px;
    text-align: center;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(28, 108, 81, .55);
}
.page-hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.page-hero h1 {
    color: var(--white);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    margin-bottom: 1rem;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .35);
}
.page-hero p {
    color: var(--white);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}

/* ---------- Section de contenu ---------- */
.content-section { padding: 100px 0; }
.content-section.bg-cream { background: var(--cream); }
.content-section.bg-green { background: var(--green); color: var(--white); }
.content-section.bg-green .cs-title { color: var(--white); }
.content-section.bg-green .cs-content { color: var(--white); }
.content-section.bg-green .cs-content strong { color: var(--white); }
.cs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
}
.cs-grid.is-reversed .cs-media { order: 2; }
.cs-grid.no-media { grid-template-columns: 1fr; max-width: 820px; }
.align-center .cs-body { text-align: center; margin: 0 auto; }
.cs-media img {
    width: 100%;
    border-radius: var(--radius-img);
    box-shadow: var(--shadow-card);
}
.cs-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    margin-bottom: 1.6rem;
}
.cs-title em, .section-title em {
    font-style: normal;
    border-bottom: 5px double currentColor;
    border-radius: 4px;
    padding-bottom: 2px;
}
.cs-content ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.cs-content ul li { position: relative; padding-left: 2rem; margin-bottom: .5rem; }
.cs-content ul li::before { content: "👉"; position: absolute; left: 0; top: 0; }
.cs-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.align-center .cs-actions { justify-content: center; }

/* ---------- Membres / Équipe ---------- */
.team { padding: 100px 0; background: var(--white); }
.section-title--dark { color: var(--ink); }
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}
.team-card { text-align: center; }
.team-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 1.1rem;
    box-shadow: var(--shadow-card);
}
.team-first {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--ink);
    line-height: 1.1;
}
.team-last {
    display: block;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--ink);
    margin-bottom: .3rem;
}
.team-role { color: var(--orange); font-weight: 600; }
.team-note {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--ink);
    margin: 3rem 0 1.5rem;
}
.team-action { text-align: center; }

/* ---------- Galerie ---------- */
.gallery { padding: 100px 0; background: var(--cream); }
.gallery-intro { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
}
.gallery-item { margin: 0; }
.gallery-item img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}
.gallery-item figcaption { font-size: .9rem; margin-top: .5rem; text-align: center; }
.gallery-action { text-align: center; margin-top: 2.5rem; }

/* ---------- Infos de contact ---------- */
.contact-info { padding: 100px 0; background: var(--white); }
.ci-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4.5rem;
    align-items: center;
}
.ci-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.ci-group h5 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--orange);
    margin: 0 0 .8rem;
}
.ci-group ul { list-style: none; margin: 0; padding: 0; }
.ci-group li { margin-bottom: .5rem; }
.ci-socials a { width: 44px; height: 44px; }
.ci-media img {
    width: 100%;
    border-radius: var(--radius-img);
    box-shadow: var(--shadow-card);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .site-nav, .site-header-actions { display: none; }
    .nav-burger { display: block; }
    .site-nav.is-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream);
        box-shadow: 0 12px 24px rgba(52, 52, 52, .12);
    }
    .site-nav.is-open ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 1rem 24px; }
    .site-nav.is-open li { width: 100%; }
    .site-nav.is-open a { display: block; padding: .8rem 0; }

    .news-grid { grid-template-columns: 1fr; gap: 3.5rem; }
    .split-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .split-grid.is-reversed .split-media { order: 0; }
    .join-grid { grid-template-columns: 1fr; }
    .join-card { border-radius: var(--radius-card) var(--radius-card) 0 0; padding: 50px 34px; }
    .join-photo img { border-radius: 0 0 var(--radius-card) var(--radius-card); max-height: 380px; }
    .join-heading { text-align: left; margin-left: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-deco { display: none; }
    .cs-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .cs-grid.is-reversed .cs-media { order: 0; }
    .ci-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .page-hero { padding: 140px 24px; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
    .ci-groups { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .site-topbar .wrap { flex-direction: column; gap: .3rem; }
    .split, .join-band, .testimonials { padding-top: 70px; padding-bottom: 70px; }
    .news-band { padding: 70px 0; }
    .footer-bottom .wrap { flex-direction: column; }
    .btn { padding: 15px 32px; font-size: .92rem; }
}
