@import url('https://fonts.googleapis.com/css?family=Montserrat:300,400,500,600,700,800,900&display=swap');

/* =============================================================
   LADIES SQUAD — refonte graphique
   Palette :
     --navy   #161d31  fond sombre (bio, footer)
     --blue   #004AAD  header, titres secondaires
     --red    #d23038  accent, boutons
     --cloud  #f4f6fa  fond clair (contact)
     --ink    #2d2d3c  texte
   ============================================================= */

:root {
    /* couleurs de base */
    --navy: #161d31;
    --blue: #004AAD;
    --red: #d23038;
    --cloud: #f4f6fa;
    --ink: #2d2d3c;

    /* couleurs extraites du logo */
    --logo-ink: #021327;      /* lettres L, S et "LADIES SQUAD" */
    --logo-indigo: #1d2c61;   /* extrémité haute de la capsule (pixel exact) */
    --logo-plum: #6e2e4e;     /* milieu du dégradé */
    --logo-red: #cb2e37;      /* extrémité basse de la capsule (pixel exact) */
    /* les extrêmes sont tenus sur 12 % de chaque côté pour que les deux
       couleurs du logo soient franchement lisibles, pas seulement effleurées */
    --logo-gradient: linear-gradient(180deg, var(--logo-indigo) 0%, var(--logo-indigo) 12%, var(--logo-plum) 50%, var(--logo-red) 88%, var(--logo-red) 100%);
    --logo-gradient-h: linear-gradient(90deg, var(--logo-indigo) 0%, var(--logo-indigo) 12%, var(--logo-plum) 50%, var(--logo-red) 88%, var(--logo-red) 100%);

    --wrap: 1118px;
    --margin: 3%;
    --quarter: 25%;
    --third: 33%;
}

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

html, body {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: var(--ink);
    background: #fff;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    scroll-padding-top: 160px;      /* compense header + menu sticky pour les ancres */
    overflow-x: hidden;
}

a, a:visited { color: var(--blue); }
a:hover, a:focus { color: var(--red); }

p {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    margin: 0 0 14px 0 !important;
}

b, strong { font-weight: 600; }

/* ---------- Titres ---------- */

h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; }

h1 {
    font-size: 40px;
    font-weight: 900;
    color: var(--logo-ink);
    letter-spacing: -0.5px;
    margin: 0 0 40px 0 !important;
}

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

/* la "ligne de touche" rouge sous le h1 */
h1.text-center:after {
    content: "";
    display: block;
    width: 64px;
    height: 5px;
    background: var(--logo-gradient-h);
    margin: 16px auto 0;
    border-radius: 3px;
}

h2 {
    font-size: 34px;
    font-weight: 900;
    color: var(--red);
    line-height: 1.15;
    margin: 0 0 14px 0 !important;
}

h3 {
    font-size: 21px;
    font-weight: 800;
    color: var(--blue);
    margin: 32px 0 12px 0 !important;
    padding-left: 14px;
    border-left: 4px solid var(--red);
    line-height: 1.3;
}

h3:first-child { margin-top: 0 !important; }

h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--red);
    line-height: 1.5;
    margin: 20px 0 0 0 !important;
}

h5, h6 { font-size: 14px; font-weight: 500; color: var(--blue); }

/* ---------- Boutons ---------- */

main button, main .button, .ui.primary.button {
    padding: 12px 28px !important;
    font-size: 14px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--red) !important;
    color: #fff !important;
    border: 0;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(210, 48, 56, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

main button:hover, main .button:hover, .ui.primary.button:hover {
    background: var(--blue) !important;
    box-shadow: 0 8px 20px rgba(0, 74, 173, 0.3);
    transform: translateY(-2px);
}

main button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Layout ---------- */

.wrapper {
    width: var(--wrap);
    max-width: 96%;
    margin: 0 auto;
    position: relative;
}

/* le wrapper placé dans une colonne doit garder sa largeur
   (sinon .one-column > * { width: 100% } l'écrase) */
.one-column > .wrapper,
.one-column > .editable.wrapper {
    width: var(--wrap);
    max-width: 96%;
    margin: 0 auto;
}

/* ---------- Header ---------- */

header {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #e4e7ee;
    position: sticky;
    top: 0;
    z-index: 110;
}

/* trois zones : baseline à gauche, logo au centre, réseaux à droite */
header .wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.left-block { justify-self: start; text-align: left; }
.left-block p { margin: 0 !important; min-height: 0; line-height: 0; }

/* baseline "LADIES SQUAD – Clic et Joue" (Baseline.png) */
.baseline { display: inline-block; }
.baseline img {
    height: 44px;
    width: auto;
    margin: 0;
    display: block;
}

/* capsule LS (Logo_capsule.png) */
.logo { display: inline-block; justify-self: center; }
.logo img {
    height: 72px;
    width: auto;
    margin: 0;
    display: block;
}

.right-block {
    justify-self: end;
    position: static;
    display: flex;
    gap: 10px;
}

.right-block a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--logo-indigo);
    color: #fff;
    font-size: 17px;
    transition: background 0.2s ease;
}

.right-block a .icon { margin: 0; }
.right-block a:hover { background: var(--red); color: #fff; }

/* ---------- Bande de menu ---------- */

section.menu {
    background: var(--logo-indigo);
    position: sticky;
    top: 96px;                  /* hauteur du header (72px logo + 24px padding) */
    z-index: 100;
    /* ligne rouge du logo sous le menu, prolongée par une ombre noire
       qui s'estompe : petit effet de relief */
    border-bottom: 4px solid var(--logo-red);
    box-shadow:
        0 6px 8px -4px rgba(0, 0, 0, 0.35),
        0 14px 16px -8px rgba(0, 0, 0, 0.18);
}

.menu-241 {
    width: var(--wrap);
    max-width: 96%;
    margin: 0 auto;
    position: relative;
}

.menu-241 ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.menu-241 ul li { position: relative; }

.menu-241 ul li a {
    display: block;
    padding: 18px 22px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}

/* soulignement rouge qui s'étend au survol */
.menu-241 ul li a:after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 10px;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.menu-241 ul li a:hover,
.menu-241 ul li.active a { color: #fff; }

.menu-241 ul li a:hover:after,
.menu-241 ul li.active a:after { transform: scaleX(1); }

/* navigation clavier (le CMS met tabindex="0" sur les li) */
.menu-241 ul li:focus-visible { outline: none; }
.menu-241 ul li:focus-visible a { color: #fff; }
.menu-241 ul li:focus-visible a:after { transform: scaleX(1); }

/* burger (caché sur desktop) */
.menu-241 > .button,
.menu-241 > input.button { display: none; }

/* ---------- Contenu principal ---------- */

main { width: 100%; }
main .one-column { margin-bottom: 0; }
main p { color: var(--ink); }

section#application {
    padding: 70px 0 80px;
}

section#application .two-columns.third-left {
    align-items: center;
}

section#application .two-columns.third-left > :first-child { text-align: center; }

section#application .two-columns.third-left img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 24px 40px rgba(22, 29, 49, 0.25));
}

/* sections à fond coloré : le fond est peint par un pseudo-élément qui
   déborde du wrapper des deux côtés, le contenu reste aligné */
section#biography,
section#contact {
    position: relative;
    isolation: isolate;
    width: auto;
    margin: 0;
}

section#biography:after,
section#contact:after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
}

section#biography:after {
    background: var(--navy);
    border-top: 6px solid transparent;
    border-image: var(--logo-gradient-h) 1;
}

section#contact:after {
    background: var(--cloud);
}

/* ---------- Pages internes ---------- */

h1.main {
    padding-top: 70px;
    margin-bottom: 36px !important;
}

h1.main:after {
    content: "";
    display: block;
    width: 64px;
    height: 5px;
    background: var(--logo-gradient-h);
    margin: 16px 0 0;
    border-radius: 3px;
}

h1.main ~ .item-data { padding-bottom: 80px; }

/* ---------- Biographie ---------- */

section#biography {
    color: #fff;
    padding: 80px 0;
}

section#biography > div { width: 100%; }

section#biography .two-columns { align-items: center; }

section#biography .two-columns .editable:first-child img {
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

section#biography h2 { color: #fff; }
section#biography h2 + h2 { color: var(--red); font-size: 24px; margin-bottom: 24px !important; }
section#biography p { color: rgba(255, 255, 255, 0.85); }
section#biography h4 {
    color: #fff;
    background: var(--logo-gradient-h);
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 600;
}

/* ---------- Contact ---------- */

section#contact {
    padding: 80px 0;
}

section#contact > div { width: 100%; }

section#contact h2 { color: var(--navy); }

section#contact node-form > div {
    background: #fff;
    padding: 36px;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(22, 29, 49, 0.08);
}

section#contact .ui.form .name.column span {
    font-weight: 600;
    color: var(--navy);
    font-size: 14px;
}

section#contact .ui.form input[type="text"],
section#contact .ui.form textarea,
section#contact .ui.form .ui.selection.dropdown {
    border: 1px solid #d9dde6;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

section#contact .ui.form input[type="text"]:focus,
section#contact .ui.form textarea:focus,
section#contact .ui.form .ui.selection.dropdown.active {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.15);
}

section#contact .ui.form textarea { min-height: 160px; }

section#contact .buttons { text-align: right; margin-top: 20px; }

/* ---------- Footer ---------- */

footer {
    background: var(--navy);
    color: #fff;
    text-align: center;
    padding: 28px 0;
    border-top: 6px solid transparent;
    border-image: var(--logo-gradient-h) 1;
}

footer .legal { font-size: 12px; color: rgba(255, 255, 255, 0.7); }
footer a { color: #fff !important; font-weight: 500; }
footer a:hover { text-decoration: underline !important; }

/* ---------- Colonnes (inchangé, nettoyé) ---------- */

.one-column > *, .two-columns > *, .three-columns > *, .four-columns > * {
    display: block;
    vertical-align: top;
    padding: 0;
}

.one-column, .two-columns, .three-columns, .four-columns {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    margin: 2% 0;
}

.one-column > * { width: 100%; }
.one-column.centered > * { width: 50%; margin: 0 auto; }
.two-columns > * { width: calc((100% - var(--margin)) / 2); }
.two-columns.third-left > :first-child,
.two-columns.third-right > :last-child { width: var(--third); }
.two-columns.third-left > :last-child,
.two-columns.third-right > :first-child { width: calc(100% - (var(--margin) + var(--third))); }
.two-columns.quarter-left > :first-child,
.two-columns.quarter-right > :last-child { width: var(--quarter); }
.two-columns.quarter-left > :last-child,
.two-columns.quarter-right > :first-child { width: calc(100% - (var(--margin) + var(--quarter))); }
.three-columns > * { width: calc((100% - var(--margin) * 2) / 3); }
.four-columns > * { width: calc((100% - var(--margin) * 3) / 4); }

/* ---------- Responsive ---------- */

@media screen and (max-width: 800px) {

    html { scroll-padding-top: 90px; }
    h1 { font-size: 30px; }
    h2 { font-size: 26px; }

    .logo img { height: 48px; }
    .baseline img { height: 24px; }
    .right-block a { width: 34px; height: 34px; font-size: 15px; }

    /* sur mobile : logo centré en haut, baseline et icônes dessous */
    header .wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 8px 0;
    }
    .logo { grid-column: 1 / -1; }
    .left-block { grid-row: 2; }
    .right-block { grid-row: 2; }
    section.menu { top: 124px; }

    /* menu burger */

    .menu-241 > .button {
        display: block;
        width: 100%;
        padding: 14px 0;
        text-align: center;
        font-size: 14px;
        font-weight: 700;
        color: #fff;
        background: transparent !important;
        box-shadow: none;
        border-radius: 0;
    }

    .menu-241 > .button:before { content: "☰  Menu"; }

    .menu-241 > input.button {
        display: block;
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: 48px;
        margin: 0;
        opacity: 0;
        cursor: pointer;
        z-index: 2;
    }

    .menu-241 ul {
        display: none;
        flex-direction: column;
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .menu-241 > input.button:checked ~ ul { display: flex; }

    .menu-241 ul li a { padding: 14px 20px; text-align: center; }
    .menu-241 ul li a:after { display: none; }

    section#application,
    section#biography,
    section#contact { padding: 48px 0; }

    h1.main { padding-top: 40px; }
    h1.main ~ .item-data { padding-bottom: 48px; }

    section#contact node-form > div { padding: 20px; }
}

@media screen and (max-width: 600px) {
    .one-column > *, .one-column.centered > *,
    .two-columns > *, .three-columns > *, .four-columns > *,
    .two-columns.third-left > :first-child, .two-columns.third-right > :last-child,
    .two-columns.third-left > :last-child, .two-columns.third-right > :first-child,
    .two-columns.quarter-left > :first-child, .two-columns.quarter-right > :last-child,
    .two-columns.quarter-left > :last-child, .two-columns.quarter-right > :first-child {
        width: 100%;
    }

    section#application .two-columns.third-left img { max-width: 240px; margin: 0 auto 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after { transition: none !important; }
    html { scroll-behavior: auto; }
}
