/*
  ╔══════════════════════════════════════════════════════════════╗
  ║  LES POISSONS SOLUBLES — PAGES (site + éditeur)              ║
  ╠══════════════════════════════════════════════════════════════╣
  ║  Chaque section de composition porte la classe .ps-section : ║
  ║  tous les styles en dépendent, le reste du site est intact.  ║
  ╚══════════════════════════════════════════════════════════════╝
*/

/* === BASE === */
/* :where() : le CSS d'une page importée doit pouvoir remplacer ces valeurs */
:where(body.ps-canevas) {
    margin: 0;
    padding: 0;
    background-color: #fbfbfb;
}

.ps-section {
    --ps-gouttiere: max(20px, calc((100% - 1060px) / 2));
    --ps-serif: 'Playfair Display', Georgia, serif;

    width: 100%;
    padding: 80px var(--ps-gouttiere);
    background-color: #fbfbfb;
    color: #1a1a1a;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
.ps-section,
.ps-section * {
    box-sizing: border-box;
}
.ps-section.is-style-sombre {
    background-color: #222222;
    color: #ffffff;
}
/* Les thèmes classiques ajoutent ce conteneur dans les groupes :
   on l'annule pour que la mise en page soit la même partout */
.ps-section .wp-block-group__inner-container {
    display: contents;
}

.ps-section h1,
.ps-section h2,
.ps-section h3 {
    margin: 0 0 20px;
    color: inherit;
    font-family: var(--ps-serif);
    font-weight: 700;
    line-height: 1.1;
}
.ps-section p {
    margin: 0 0 20px;
}
.ps-section strong,
.ps-section b {
    font-weight: 700;
}
.ps-section .wp-block-image {
    margin: 0;
}
.ps-section .wp-block-image img {
    display: block;
    max-width: 100%;
}
.ps-section .wp-block-columns {
    gap: 40px;
    margin: 0;
}

/* === BOUTONS === */
.ps-section .wp-block-buttons {
    margin-top: 20px;
}
.ps-section .wp-block-button__link,
.ps-section .ps-bouton {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    background-color: #d4e1d9;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
}

/* === EN-TÊTE ET PIED DE PAGE === */
.ps-section.ps-entete {
    padding: 30px 5%;
}
.ps-section .ps-logo-site img {
    width: 300px;
}
.ps-section.ps-pied {
    padding-top: 60px;
    padding-bottom: 60px;
    border-top: 1px solid #eeeeee;
}
.ps-section.ps-pied .wp-block-columns {
    justify-content: space-between;
}
/* Largeur selon le contenu, pour ne pas couper l'adresse courriel */
.ps-section.ps-pied .wp-block-columns > .wp-block-column {
    flex: 0 1 auto;
}
.ps-section.ps-pied p {
    margin-bottom: 15px;
    font-weight: 700;
}

/* === ACCROCHE === */
.ps-section.ps-accroche h1 {
    max-width: 800px;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}
.ps-section.ps-accroche p {
    max-width: 600px;
    margin-bottom: 30px;
    font-size: 1.2rem;
}

/* === TEXTE + POISSON === */
.ps-section.ps-approches p {
    font-size: 1.1rem;
}
.ps-section .ps-poisson {
    display: flex;
    justify-content: flex-end;
}
.ps-section .ps-poisson img {
    width: 238px;
}

/* === ILLUSTRATIONS ===
   Les fils sont dans les PNG. Le haut de l'image la plus grande est coupé
   pour que son fil sorte de la section placée au-dessus. */
.ps-section.ps-illustrations {
    --ps-hauteur-illustration: 212px;

    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 8px;
    padding-top: 0;
    overflow: hidden;
}
.ps-section.ps-illustrations .wp-block-image img {
    width: auto;
    max-width: none;
    height: var(--ps-hauteur-illustration);
}
.ps-section.ps-illustrations .ps-illustration-haute {
    margin-top: calc(var(--ps-hauteur-illustration) * -0.3443);
}
.ps-section.ps-illustrations .ps-illustration-haute img {
    height: calc(var(--ps-hauteur-illustration) * 1.3443);
}

/* === APPEL (TÉLÉPHONE) === */
.ps-section.ps-appel {
    position: relative;
    padding-top: 0;
    text-align: center;
}
/* Ligne à laquelle le téléphone est suspendu */
.ps-section.ps-appel::before {
    content: "";
    position: absolute;
    top: 0;
    right: var(--ps-gouttiere);
    left: var(--ps-gouttiere);
    height: 1px;
    background-color: #1a1a1a;
}
.ps-section .ps-telephone {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}
.ps-section .ps-telephone img {
    width: 110px;
}
.ps-section.ps-appel h2 {
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}
.ps-section.ps-appel p {
    margin-bottom: 0;
    color: #555555;
    font-size: 1.1rem;
}

/* === LA SLIDE === */
.ps-section.ps-la-slide h2 {
    margin-bottom: 30px;
    font-size: 2rem;
}
.ps-section.ps-la-slide p {
    margin-bottom: 15px;
    color: #cccccc;
}
.ps-section .ps-logo-la-slide {
    display: flex;
    justify-content: center;
}
.ps-section .ps-logo-la-slide img {
    width: 350px;
}

/* === TÉMOIGNAGES ET LOGOS === */
.ps-section.ps-temoignages {
    padding-top: 0;
    text-align: center;
}
/* Décalé vers le haut pour compenser le vide en haut du PNG */
.ps-section .ps-micro {
    position: relative;
    top: -15px;
    display: flex;
    justify-content: center;
}
.ps-section .ps-micro img {
    width: 150px;
}
.ps-section.ps-temoignages .wp-block-columns {
    margin: 65px 0 80px;
}
.ps-section p.ps-citation {
    color: #444444;
    font-style: italic;
}
.ps-section p.ps-auteur {
    margin-bottom: 0;
    font-weight: 700;
}
.ps-section p.ps-fonction {
    margin-bottom: 0;
    color: #666666;
    font-size: 0.9rem;
}
.ps-section .ps-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 1.5rem;
    font-weight: 700;
}
.ps-section .ps-logos p {
    margin: 0;
}
.ps-section .ps-logos img {
    width: auto;
    max-height: 60px;
}

/* === CONTACT === */
.ps-section.ps-contact {
    padding-bottom: 120px;
}
.ps-section.ps-contact h2 {
    margin-bottom: 40px;
    font-size: 2rem;
}
.ps-section .ps-formulaire {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.ps-section .ps-formulaire label {
    display: block;
    margin-bottom: 8px;
}
.ps-section .ps-formulaire input[type="text"],
.ps-section .ps-formulaire input[type="email"],
.ps-section .ps-formulaire textarea {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    padding: 12px;
    border: none;
    border-radius: 0;
    background-color: #ffffff;
    color: #1a1a1a;
    font: inherit;
}
.ps-section .ps-formulaire textarea {
    height: 200px;
    resize: none;
}
.ps-section .ps-formulaire-choix {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.ps-section .ps-formulaire-choix label {
    margin-bottom: 0;
}
.ps-section .ps-formulaire .ps-bouton {
    grid-column: 1 / -1;
    justify-self: start;
}
p.ps-formulaire-message {
    margin: 0 0 30px;
    padding: 15px 20px;
    background-color: #d4e1d9;
    color: #1a1a1a;
    font-weight: 700;
}
/* Champ piège pour les robots : invisible pour les visiteurs */
.ps-section .ps-formulaire-piege {
    position: absolute;
    left: -9999px;
}

/* === RESPONSIVE ===
   Les colonnes passent à la verticale toutes seules sous 782px (WordPress). */
@media (max-width: 781px) {
    .ps-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .ps-section .ps-logo-site img {
        width: 220px;
    }
    .ps-section .ps-poisson {
        justify-content: center;
    }
    .ps-section .ps-poisson img {
        width: 160px;
    }
    .ps-section.ps-illustrations {
        --ps-hauteur-illustration: 150px;
    }
    .ps-section .ps-logo-la-slide img {
        width: 250px;
    }
    .ps-section.ps-temoignages .wp-block-columns {
        margin: 45px 0 60px;
    }
    .ps-section .ps-formulaire {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .ps-section.ps-contact {
        padding-bottom: 80px;
    }
}
