
/*
Theme Name: Votre Livre de Vie
Author: Elisabeth Venchiarutti
Description: Thème personnalisé Votre Livre de Vie.
Version: 1.1
Text Domain: votre-livre-de-vie
*/

/* =========================================
   1. CHARTE GRAPHIQUE
   ========================================= */

:root {
    --bleu-marine: #0B3264;
    --bleu-profond: #074D87;
    --bleu-lumineux: #338DD0;
    --bleu-pastel: #DFEBF8;
    --rose-poudre: #FECCDA;
    --rose-vif: #FF3287;
    --blanc-rose: #FEFAF9;
    --blanc: #FFFFFF;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--blanc-rose);
    color: var(--bleu-marine);
    font-family: Georgia, serif;
    font-size: 18px;
    line-height: 1.7;
}

h1, h2, h3 {
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: normal;
    line-height: 1.25;
    color: var(--bleu-marine);
}

h2 {
    font-size: 36px;
}

p {
    margin: 0 0 20px;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 3px solid var(--bleu-lumineux);
    outline-offset: 5px;
}

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

.conteneur {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================
   2. MENU DE NAVIGATION
   ========================================= */

.site-header {
    background: var(--blanc-rose);
}

.navigation {
    max-width: 1400px;
    margin: auto;
    padding: 22px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-bottom: 1px solid var(--bleu-pastel);
}

.brand {
    font-size: 24px;
    font-style: italic;
    text-decoration: none;
    white-space: nowrap;
}

.menu-principal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
}

.menu-principal a {
    font-size: 17px;
    text-decoration: none;
}

.menu-principal a:hover {
    color: var(--bleu-profond);
    text-decoration: underline;
}


/* =========================================
   3. IDENTITE VISUELLE
   ========================================= */

.identite-visuelle {
    text-align: center;
    padding: 35px 20px 20px;
}

.logo-titre {
    font-size: clamp(48px, 6vw, 82px);
    line-height: 1.1;
    margin: 0;
}

.logo-titre span {
    display: block;
    font-size: 0.55em;
}

.logo-ondulations {
    display: block;
    width: 260px;
    max-width: 80%;
    margin: 5px auto;
}

.sous-titre {
    font-size: 24px;
    margin: 12px 0 0;
}


/* =========================================
   4. PRESENTATION PRINCIPALE
   ========================================= */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 65px;
    padding-top: 40px;
    padding-bottom: 50px;
}

.hero-texte h2 {
    font-size: clamp(28px, 3vw, 40px);
    margin: 0 0 25px;
}

.hero-texte p {
    font-size: 20px;
}

.hero-image img {
    display: block;
    width: 100%;
    border-radius: 12px;
}

.image-provisoire {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 30px;
    text-align: center;
    font-style: italic;
    background: var(--bleu-pastel);
    border-radius: 12px;
}


/* =========================================
   5. BOUTONS
   ========================================= */

.bouton {
    display: inline-block;
    background: var(--bleu-profond);
    color: var(--blanc);
    padding: 15px 28px;
    border: 1px solid transparent;
    border-radius: 6px;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.2s;
}

.bouton:hover {
    background: var(--bleu-marine);
}

.bouton-clair {
    background: transparent;
    border: 1px solid var(--blanc);
    color: var(--blanc);
}

.bouton-clair:hover {
    background: var(--blanc);
    color: var(--bleu-profond);
}


/* =========================================
   6. ONDULATIONS DECORATIVES
   ========================================= */

.transition {
    height: 85px;
    overflow: hidden;
}

.transition svg {
    display: block;
    width: 100%;
    height: 100%;
}


/* =========================================
   7. BANDEAU DES TARIFS
   ========================================= */

.section-tarifs {
    background: var(--bleu-profond);
    color: var(--blanc);
    text-align: center;
    padding: 35px 20px 55px;
}

.section-tarifs h2 {
    color: var(--blanc);
    font-size: 36px;
    margin: 0 0 10px;
}

.prix {
    font-size: 72px;
    line-height: 1.3;
    font-weight: bold;
    margin: 10px 0 20px;
}

.section-tarifs p {
    max-width: 650px;
    margin: 0 auto 25px;
    font-size: 20px;
}

.prix-exemplaire {
    display: table;
    margin: 0 auto 25px;
    background: var(--rose-poudre);
    color: var(--bleu-marine);
    padding: 12px 25px;
    border-radius: 6px;
}


/* =========================================
   8. SECTIONS COMPLEMENTAIRES
   ========================================= */

.section-standard {
    padding-top: 50px;
    padding-bottom: 50px;
    text-align: center;
}


/* =========================================
   9. PIED DE PAGE
   ========================================= */

.site-footer {
    background: var(--bleu-marine);
    color: var(--blanc);
    text-align: center;
    padding: 35px 20px;
}

.footer-titre {
    font-size: 28px;
    font-style: italic;
}

.copyright {
    font-size: 14px;
    margin-bottom: 0;
}


/* =========================================
   10. ADAPTATION AUX SMARTPHONES
   ========================================= */

@media (max-width: 768px) {

    .navigation {
        flex-direction: column;
        padding: 20px 15px;
        gap: 15px;
    }

    .menu-principal {
        gap: 12px 20px;
    }

    .menu-principal a {
        font-size: 16px;
    }

    .identite-visuelle {
        padding-top: 25px;
    }

    .sous-titre {
        font-size: 20px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 25px;
        padding-bottom: 30px;
    }

    .hero-texte {
        text-align: center;
    }

    .hero-texte p {
        font-size: 18px;
    }

    .image-provisoire {
        min-height: 250px;
    }

    .transition {
        height: 45px;
    }

    .section-tarifs h2 {
        font-size: 30px;
    }

    .prix {
        font-size: 58px;
    }

    h2 {
        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}



/* =========================================
   11. SECTIONS DE LA PAGE D'ACCUEIL
   ========================================= */

.section-page {
    padding: 65px 0;
}

.titre-section {
    text-align: center;
    font-size: clamp(28px, 3vw, 38px);
    margin: 0 0 35px;
}

.introduction-section {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 20px;
}

.fond-bleu-pastel {
    background-color: var(--bleu-pastel);
}

.fond-rose {
    background-color: var(--rose-poudre);
}

.grille-deux {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.grille-trois {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.section-page h3 {
    font-size: 27px;
    margin: 15px 0 20px;
}


/* =========================================
   12. PRESERVER - TRANSMETTRE - RELIER
   ========================================= */

.carte-valeur {
    text-align: center;
    padding: 20px;
}

.icone-valeur {
    display: block;
    width: 65px;
    height: 65px;
    margin: 0 auto 20px;
    color: var(--bleu-profond);
}

.carte-valeur h3 {
    font-size: 30px;
}

.carte-valeur p {
    font-size: 19px;
    margin-bottom: 0;
}


/* =========================================
   13. LES DEUX PUBLICS
   ========================================= */

.carte-public {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
}

.carte-public img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.carte-contenu {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: flex-start;
    padding: 30px;
}

.carte-contenu h3 {
    margin-top: 0;
}

.carte-contenu p {
    flex: 1;
    font-size: 19px;
}

.carte-contenu .bouton {
    margin-top: 10px;
}


/* =========================================
   14. LES QUATRE ETAPES
   ========================================= */

.grille-etapes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.carte-etape {
    background: var(--blanc-rose);
    border-radius: 10px;
    padding: 30px 22px;
    text-align: center;
}

.numero-etape {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: var(--bleu-profond);
    color: var(--blanc);
    font-size: 28px;
}

.carte-etape h3 {
    font-size: 24px;
    min-height: 60px;
}

.carte-etape p {
    font-size: 18px;
    margin-bottom: 0;
}


/* =========================================
   15. EXEMPLE DE LIVRE
   ========================================= */

.exemple-livre {
    align-items: center;
    gap: 60px;
}

.exemple-image img {
    display: block;
    width: 100%;
    border-radius: 10px;
}

.exemple-image .image-provisoire {
    font-size: 28px;
    line-height: 1.8;
}

.exemple-livre p {
    font-size: 19px;
}


/* =========================================
   16. DETAILS DES TARIFS
   ========================================= */

.liste-prestations {
    max-width: 620px;
    margin: 30px auto;
    padding: 0;
    list-style: none;
    text-align: left;
}

.liste-prestations li {
    position: relative;
    padding: 12px 10px 12px 38px;
    border-bottom: 1px solid
        rgba(255, 255, 255, 0.2);
    font-size: 19px;
}

.liste-prestations li::before {
    content: "\2713";
    position: absolute;
    left: 8px;
    top: 12px;
    color: var(--blanc);
    font-weight: bold;
}

.section-tarifs .projet-personnalise {
    font-size: 17px;
    font-style: italic;
    max-width: 600px;
    margin: 25px auto;
}

.prix-exemplaire {
    font-size: 20px;
}


/* =========================================
   17. PRESENTATION DE LA BIOGRAPHE
   ========================================= */

.grille-biographe {
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.portrait-biographe img {
    display: block;
    width: 100%;
    border-radius: 12px;
}

.portrait-biographe:empty {
    display: none;
}

.grille-biographe:has(.portrait-biographe:empty) {
    grid-template-columns: 1fr;
    max-width: 800px;
}

.texte-biographe h3 {
    font-size: 30px;
    margin-top: 0;
}

.texte-biographe p {
    font-size: 19px;
}


/* =========================================
   18. CONTACT
   ========================================= */

.contact-contenu {
    max-width: 800px;
    text-align: center;
}

.contact-contenu p {
    font-size: 20px;
}

.contact-provisoire {
    font-style: italic;
}


/* =========================================
   19. ADAPTATION AUX TABLETTES
   ========================================= */

@media (max-width: 1024px) {

    .grille-etapes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grille-biographe {
        grid-template-columns: 240px 1fr;
        gap: 35px;
    }

    .grille-trois {
        gap: 20px;
    }

}


/* =========================================
   20. ADAPTATION AUX SMARTPHONES
   ========================================= */

@media (max-width: 768px) {

    .section-page {
        padding: 40px 0;
    }

    .titre-section {
        font-size: 29px;
        margin-bottom: 25px;
    }

    .introduction-section {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .grille-deux,
    .grille-trois,
    .grille-etapes,
    .grille-biographe {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .carte-valeur {
        padding: 15px;
    }

    .carte-contenu {
        padding: 25px;
    }

    .carte-etape h3 {
        min-height: 0;
    }

    .exemple-livre {
        gap: 30px;
    }

    .portrait-biographe {
        max-width: 260px;
        margin: 0 auto;
    }

    .texte-biographe {
        text-align: center;
    }

    .liste-prestations li {
        font-size: 17px;
    }

    .prix-exemplaire {
        font-size: 18px;
    }

    .contact-contenu p {
        font-size: 18px;
    }

}

/* Correction de la taille des pictogrammes */

.carte-valeur svg.icone-valeur {
    display: block;
    width: 65px !important;
    height: 65px !important;
    max-width: 65px !important;
    max-height: 65px !important;
    margin: 0 auto 20px;
}


/* 21. Transmission familiale */
.histoire-famille { align-items: center; }
.histoire-famille img { display: block; width: 100%; border-radius: 12px; }
.histoire-famille p { font-size: 19px; }
.histoire-famille ul { padding-left: 1.3em; margin: 0 0 20px; }
.histoire-famille li { margin-bottom: 8px; }
.histoire-famille .phrase-cle { font-size: 24px; font-style: italic; }
@media (max-width: 768px) { .histoire-famille .phrase-cle { font-size: 21px; } }

.histoire-famille li { font-size: 19px; }
.legende-exemple { font-size: 14px; margin-top: 8px; text-align: center; }

/* 22. Version compacte de la page d'accueil */
body { font-size: 17px; line-height: 1.55; }
p { margin-bottom: 12px; }
.navigation { padding: 14px 5%; gap: 18px; }
.brand { font-size: 22px; }
.menu-principal { gap: 20px; }
.menu-principal a { font-size: 16px; }
.identite-visuelle { padding: 20px 20px 10px; }
.logo-titre { font-size: clamp(42px, 5vw, 60px); }
.logo-ondulations { width: 200px; }
.sous-titre { font-size: 20px; margin-top: 6px; }
.hero { gap: 35px; padding-top: 20px; padding-bottom: 28px; }
.hero-texte h2 { font-size: clamp(26px, 2.6vw, 32px); margin-bottom: 14px; }
.hero-texte p { font-size: 17px; }
.hero-image img { width: auto; max-width: 100%; max-height: 380px; margin: auto; }
.bouton { padding: 10px 20px; font-size: 16px; }
.section-page { padding: 32px 0; }
.titre-section { font-size: clamp(25px, 2.5vw, 30px); margin-bottom: 20px; }
.introduction-section { font-size: 17px; margin-bottom: 20px; }
.grille-deux, .grille-trois, .exemple-livre { gap: 28px; }
.section-page h3 { font-size: 23px; margin: 8px 0 12px; }
.carte-valeur { padding: 8px 12px; }
.carte-valeur svg.icone-valeur { width: 45px !important; height: 45px !important; max-width: 45px !important; max-height: 45px !important; margin-bottom: 10px; }
.carte-valeur p, .carte-contenu p, .carte-etape p, .exemple-livre p, .texte-biographe p, .histoire-famille p, .histoire-famille li, .contact-contenu p { font-size: 17px; }
.histoire-famille img, .exemple-image img { width: auto; max-width: 100%; max-height: 270px; margin: auto; }
.histoire-famille ul { margin-bottom: 12px; }
.histoire-famille li { margin-bottom: 3px; }
.histoire-famille .phrase-cle { font-size: 20px; }
.carte-public img { aspect-ratio: auto; height: 210px; object-fit: cover; }
.carte-contenu { padding: 18px; }
.carte-contenu h3 { margin-top: 0; }
.grille-etapes { gap: 16px; margin-top: 20px; }
.carte-etape { padding: 18px 14px; }
.numero-etape { width: 42px; height: 42px; font-size: 22px; margin-bottom: 12px; }
.carte-etape h3 { font-size: 21px; min-height: 0; }
.exemple-livre .legende-exemple { font-size: 14px; }
.transition { height: 45px; }
.section-tarifs { padding: 25px 20px 30px; }
.section-tarifs h2 { font-size: 30px; }
.prix { font-size: 56px; margin: 5px 0 12px; }
.section-tarifs p { font-size: 17px; margin-bottom: 15px; }
.liste-prestations { margin: 16px auto; }
.liste-prestations li { padding: 7px 10px 7px 32px; font-size: 17px; }
.liste-prestations li::before { top: 7px; }
.prix-exemplaire { font-size: 17px; padding: 8px 16px; margin-bottom: 14px; }
.section-tarifs .projet-personnalise { font-size: 16px; margin: 14px auto; }
.grille-biographe { grid-template-columns: 220px 1fr; gap: 30px; }
.portrait-biographe img { width: auto; max-height: 260px; margin: auto; }
.site-footer { padding: 20px; }
.footer-titre { font-size: 23px; }
@media (max-width: 768px) {
  .navigation { gap: 10px; padding: 12px; }
  .menu-principal { gap: 8px 14px; }
  .hero { gap: 20px; }
  .hero-image img { max-height: 300px; }
  .section-page { padding: 26px 0; }
  .grille-deux, .grille-trois, .grille-etapes, .grille-biographe { grid-template-columns: 1fr; gap: 18px; }
  .histoire-famille img, .exemple-image img { max-height: 230px; }
  .carte-public img { height: 190px; }
  .portrait-biographe { max-width: 200px; }
  .prix { font-size: 48px; }
  .transition { height: 30px; }
}

/* 23. Portrait de la biographe : alignement sur le texte */
@media (min-width: 769px) {
    .grille-biographe {
        grid-template-columns: 30% minmax(0, 1fr);
        align-items: stretch;
    }
    .portrait-biographe {
        position: relative;
        width: 100%;
        max-width: none;
        margin: 0;
    }
    .portrait-biographe img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: contain;
        margin: 0;
    }
}
@media (max-width: 768px) {
    .portrait-biographe { max-width: 280px; }
    .portrait-biographe img { width: 100%; height: auto; max-height: none; }
}

/* 24. Formulaire de contact */
.contact-direct { display:flex; flex-wrap:wrap; justify-content:center; gap:12px 28px; margin:18px auto; }
.contact-direct a { color:#0b3264; overflow-wrap:anywhere; }
.formulaire-contact { max-width:620px; margin:20px auto 0; display:grid; gap:8px; text-align:left; color:#0b3264; }
.formulaire-contact label { font-weight:600; margin-top:5px; }
.formulaire-contact input, .formulaire-contact select, .formulaire-contact textarea { box-sizing:border-box; width:100%; padding:10px 12px; border:1px solid #8da7bd; border-radius:5px; background:white; color:#0b3264; font:inherit; font-size:16px; }
.formulaire-contact textarea { resize:vertical; }
.formulaire-contact button { background:#074d87; color:white; border:0; border-radius:5px; padding:12px 20px; font:inherit; cursor:pointer; justify-self:center; }
.formulaire-contact :focus-visible { outline:2px solid #074d87; outline-offset:3px; }
.contact-piege { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.formulaire-contact .contact-info { font-size:14px; margin:8px 0; }
.contact-retour { padding:12px; background:white; border-radius:5px; }

/* Pied de page juridique */
.site-footer.vldv-footer { background: var(--bleu-marine); color: var(--blanc); padding: 24px 20px; text-align: center; }
.vldv-footer .footer-titre { color: #fff; font-size: 25px; font-style: italic; margin: 0 0 5px; }
.vldv-footer .footer-devise { font-size: 16px; margin: 0 0 14px; }
.vldv-footer .footer-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; border-top: 1px solid #597594; padding-top: 14px; max-width: 900px; margin: 0 auto 12px; }
.vldv-footer .footer-liens a { color: #fff; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.vldv-footer .footer-liens a:hover { color: var(--rose-poudre); }
.vldv-footer .footer-liens a:focus-visible { outline-color: #fff; }
.vldv-footer .footer-copyright { color: var(--bleu-pastel); font-size: 13px; margin: 0; line-height: 1.5; }
@media (max-width: 600px) { .vldv-footer .footer-liens { flex-direction: column; align-items: center; gap: 9px; } }
