/* ==========================================================================
   Psy.Link — Vitrine patients : base commune du layout « site »
   Base typographique, boutons, en-tetes de section.
   La coquille (tokens, en-tete, pied de page) vit dans site-shell.css.
   Le CSS propre a une page est charge a part (ex : accueil.css).
   ========================================================================== */


/* La coquille commune (tokens, en-tete, pied de page) est partagee avec le
   layout « vitrine » : elle vit dans site-shell.css. */
@import url("site-shell.css");

/* --------------------------------------------------------------------------
   1. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body.site {
    margin: 0;
    font-family: var(--ff);
    font-size: 16px;
    line-height: 1.62;
    color: var(--gris);
    background: var(--blanc);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Reset enveloppé dans :where() : spécificité nulle, pour que la moindre
   classe (.btn-principal, .lien-pro…) reprenne la main sans !important. */
:where(body.site h1, body.site h2, body.site h3, body.site h4) {
    font-family: var(--ff-titre);
    color: var(--encre);
    line-height: 1.15;
    letter-spacing: -.028em;
    font-weight: 700;
    margin: 0 0 .5em;
}

:where(body.site p) {
    margin: 0 0 1em;
}

:where(body.site a) {
    color: inherit;
    text-decoration: none;
}

:where(body.site img) {
    max-width: 100%;
    display: block;
}

:where(body.site ul, body.site ol) {
    margin: 0;
    padding: 0;
    list-style: none;
}

:where(body.site button) {
    font-family: inherit;
}

:focus-visible {
    outline: 3px solid var(--vert);
    outline-offset: 2px;
    border-radius: 6px;
}

:where(body.site) section {
    padding: 88px 0;
}

/* Utilitaires de couleur */
.c-vert {
    color: var(--vert);
}

.c-teal {
    color: var(--teal);
}

.c-ambre {
    color: var(--ambre);
}

/* Texte surligné (trait à la main sous un mot) */
.surligne {
    position: relative;
    white-space: nowrap;
}

.surligne::after {
    content: "";
    position: absolute;
    left: -2%;
    right: -2%;
    bottom: .06em;
    height: .34em;
    background: rgba(255, 174, 30, .38);
    border-radius: 4px;
    z-index: -1;
}

/* --------------------------------------------------------------------------
   2. Boutons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    padding: 15px 26px;
    border-radius: var(--rayon-pill);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
    white-space: nowrap;
}

.btn-principal {
    background: var(--vert-fonce);
    color: #fff;
    box-shadow: 0 12px 26px -12px rgba(30, 127, 119, .9);
}

.btn-principal:hover {
    background: #17685f;
    transform: translateY(-2px);
    box-shadow: 0 18px 32px -12px rgba(30, 127, 119, .95);
}

.btn-ambre {
    background: var(--ambre);
    color: var(--ambre-fonce);
    box-shadow: 0 12px 26px -12px rgba(255, 174, 30, .9);
}

.btn-ambre:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px -12px rgba(255, 174, 30, .95);
}

.btn-fantome {
    background: transparent;
    color: var(--teal);
    border-color: var(--ligne);
}

.btn-fantome:hover {
    border-color: var(--teal);
    background: var(--menthe);
}

.btn-blanc {
    background: #fff;
    color: var(--teal);
}

.btn-blanc:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px -14px rgba(0, 0, 0, .45);
}

.btn-contour-blanc {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .5);
}

.btn-contour-blanc:hover {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
}

.btn-sm {
    padding: 11px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 18px 32px;
    font-size: 16.5px;
}

.btn-bloc {
    width: 100%;
}

/* Lien fléché */
.lien-fleche {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    color: var(--vert-fonce);
}

.lien-fleche svg {
    transition: transform .18s ease;
}

.lien-fleche:hover svg {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   3. En-têtes de section
   -------------------------------------------------------------------------- */
.etiquette {
    display: inline-block;
    background: var(--vert-clair);
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--rayon-pill);
    margin-bottom: 16px;
}

.entete-section {
    max-width: 700px;
    margin: 0 auto 52px;
    text-align: center;
}

.entete-section h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 14px;
}

.entete-section p {
    font-size: 17.5px;
    margin: 0;
}

.entete-section-ligne {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.entete-section-ligne h2 {
    font-size: clamp(26px, 3.6vw, 36px);
    margin-bottom: 8px;
}

.entete-section-ligne p {
    margin: 0;
}

/* --------------------------------------------------------------------------
   4. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
    :where(body.site) section {
        padding: 62px 0;
    }

    .entete-section {
        margin-bottom: 36px;
    }

    .entete-section-ligne {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}
