html, body {
    overflow-x: hidden;
    max-width: 100%;
}

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

/* ===== JETONS DE MISE EN PAGE (grille partagée du guide de style) =====
   Réutilise les couleurs déjà définies globalement (--CouleurPrimaire/Secondaire/Accent
   dans general.css) — n'introduit que ce qui manquait : rayons, ombres, crème, grille. */
#SrvHero, #SrvCartes, #SrvHesitez {
    --line: rgba(31, 53, 77, 0.1);
    --cream: #FFF9F1;
    --cream-deep: #FBEFDD;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 4px 20px rgba(31, 53, 77, 0.08);
    --shadow-lift: 0 12px 32px rgba(31, 53, 77, 0.14);
    --cols: 12;
    --gutter: 24px;
    --margin: clamp(20px, 5vw, 64px);
    --maxw: 1200px;
    --funky: "Lilita One", cursive;
    --mono: "SFMono-Regular", "Space Mono", "Roboto Mono", monospace;
    --body-font: "Inter", sans-serif;
}

.wrap { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--margin); }
.grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); column-gap: var(--gutter); row-gap: 24px; }
.band { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; column-gap: var(--gutter); row-gap: 24px; align-items: start; }
@supports not (grid-template-columns: subgrid) {
    .band { grid-template-columns: repeat(var(--cols), 1fr); }
}
@media (max-width: 900px) {
    .band { grid-template-columns: repeat(var(--cols), 1fr); }
    .band > * { grid-column: 1 / -1 !important; }
}

/* ===== HERO =====
   Dégradé aligné sur celui déjà utilisé en page d'accueil (sarcelle pâle → blanc → pêche pâle),
   plutôt qu'un bleu/menthe/pêche arbitraire hors palette. */
#SrvHero {
    background: linear-gradient(160deg, #EAF6F6 0%, #ffffff 60%, #FFF1E4 100%);
    padding: 72px 0 80px;
    text-align: center;
}

#SrvHeroInner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#SrvHeroEyebrow {
    font-family: var(--funky);
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--CouleurSecondaire);
}

#SrvHeroTitle {
    font-family: var(--FontFamily);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    color: var(--CouleurPrimaire);
    line-height: 1.15;
    margin: 0;
}

#SrvHeroDesc {
    font-family: var(--body-font);
    font-size: clamp(16px, 1.1vw, 18px);
    color: rgba(31, 53, 77, 0.7);
    line-height: 1.6;
    margin: 0;
    max-width: 56ch;
}

/* ===== TRUST PILLS ===== */
.srv-trust-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.srv-trust-pills > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--body-font);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--CouleurPrimaire);
    background: white;
    border: 1px solid var(--line);
    padding: 7px 16px;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
}

.srv-trust-pills > span .material-symbols-outlined {
    font-size: 16px;
    color: var(--CouleurSecondaire);
}

/* ===== CARTES ===== */
#SrvCartes {
    padding: 64px 0 80px;
}

.srv-carte {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.srv-carte::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.srv-carte-prive::before {
    background: var(--CouleurAccent);
}

/* Plus de vert — troisième accent hors palette. La formule été utilise le marine,
   déjà l'une des deux couleurs de marque utilisées sur cette page (voir "Tutorat privé" pour l'orange). */
.srv-carte-ete::before {
    background: var(--CouleurPrimaire);
}

.srv-carte:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

.srv-carte-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--CouleurAccent);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
}

.srv-carte-badge-ete {
    background: var(--CouleurPrimaire);
}

.srv-carte-badge-off {
    background: rgba(74, 90, 107, 0.15);
    color: #4A5A6B;
}

/* Carte "vedette" — met le tutorat privé plus de l'avant que les deux autres offres. */
.srv-carte-featured {
    border: 2px solid var(--CouleurAccent);
    box-shadow: var(--shadow-lift);
}

/* Carte grisée — service temporairement indisponible (cours d'été). */
.srv-carte-disabled {
    opacity: 0.6;
}

.srv-carte-disabled:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
}

.srv-carte.srv-carte-disabled .srv-carte-icon .material-symbols-outlined,
.srv-carte.srv-carte-disabled .srv-carte-label {
    color: #4A5A6B;
}

.srv-carte-disabled::before {
    background: #4A5A6B;
}

.srv-btn-disabled {
    background: rgba(74, 90, 107, 0.15);
    color: #4A5A6B;
    box-shadow: none;
    cursor: not-allowed;
}

.srv-btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.srv-carte-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.srv-carte-head {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.srv-carte-price {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    color: rgba(31, 53, 77, 0.55);
}

.srv-carte-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.srv-carte-prive .srv-carte-icon {
    background: rgba(31, 53, 77, 0.07);
}

.srv-carte-ete .srv-carte-icon {
    background: rgba(31, 53, 77, 0.07);
}

.srv-carte-ete .srv-carte-icon .material-symbols-outlined {
    color: var(--CouleurPrimaire);
}

.srv-carte-ete .srv-carte-label {
    color: var(--CouleurPrimaire);
}

.srv-carte-icon .material-symbols-outlined {
    font-size: 30px;
    color: var(--CouleurSecondaire);
}

.srv-carte-label {
    font-family: var(--funky);
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--CouleurSecondaire);
}

.srv-carte h2 {
    font-family: var(--FontFamily);
    font-size: clamp(22px, 1.8vw, 28px);
    font-weight: 700;
    color: var(--CouleurPrimaire);
    margin: 0;
    line-height: 1.2;
}

.srv-carte p {
    font-family: var(--body-font);
    font-size: clamp(14.5px, 1vw, 16px);
    color: rgba(31, 53, 77, 0.7);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.srv-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.srv-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--body-font);
    font-size: 14.5px;
    color: var(--CouleurPrimaire);
}

.srv-points .material-symbols-outlined {
    font-size: 18px;
    color: var(--CouleurSecondaire);
    flex-shrink: 0;
}

/* Full-width CTA inside cards */
.srv-carte .srv-btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

/* ===== BOUTONS =====
   Forme pilule obligatoire pour tous les boutons (règle du guide de style) — remplace
   l'ancien border-radius:12px. */
.srv-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 50px;
    font-family: var(--FontFamily);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    width: fit-content;
    margin-top: 8px;
}

.srv-btn-primary {
    background: linear-gradient(135deg, var(--CouleurAccent), #FF6F1A);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.35);
}

.srv-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(255, 140, 66, 0.45);
}

.srv-btn-secondary {
    background: var(--CouleurSecondaire);
    color: white;
    box-shadow: var(--shadow-soft);
}

.srv-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

.srv-btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.srv-btn-outline:hover {
    background: white;
    color: var(--CouleurPrimaire);
}

/* Plus de vert ici non plus — le bouton "été" reprend le marine, cohérent avec le
   bandeau et l'icône de la carte ci-dessus. */
.srv-btn-ete {
    background: var(--CouleurPrimaire);
    color: white;
    box-shadow: var(--shadow-soft);
}

.srv-btn-ete:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

/* ===== VOUS HÉSITEZ ===== */
#SrvHesitez {
    background: var(--CouleurPrimaire);
    padding: 64px 0;
}

#SrvHesitezText {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-self: center;
}

#SrvHesitezText > .material-symbols-outlined {
    font-size: 40px;
    color: var(--CouleurSecondaire);
}

#SrvHesitezText h2 {
    font-family: var(--FontFamily);
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 700;
    color: white;
    margin: 0;
}

#SrvHesitezText p {
    font-family: var(--body-font);
    font-size: clamp(15px, 1.1vw, 16px);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0;
}

#SrvHesitezForm {
    background: white;
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-lift);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 750px) {
    .srv-carte {
        padding: 32px 24px;
    }

    #SrvHesitezText {
        text-align: center;
        align-items: center;
    }

    .srv-btn {
        width: 100%;
        justify-content: center;
    }
}
