@charset "utf-8";

/* ==========================================================================
   SOMMAIRE
   1. Polices et variables
   2. Base (reset, structure générale)
   3. En-tête et redirection
   4. Slider des 4 vues
   5. Menus
   6. Textes (intro, livre, tarifs, tableaux)
   7. Galerie et lightbox
   8. Pages diverses (entête, corps, compte)
   9. Formulaire de contact
   10. Formulaire de précommande
   11. Pied de page
   12. Page livre : deux colonnes
   12 bis. Galerie du livre : slider et visionneus
   13. Popup de paiement
   14. Responsive
   ========================================================================== */


/* ==========================================================================
   1. POLICES ET VARIABLES
   ========================================================================== */

@font-face {
    font-family: "Just Realize";
    src: url("http://static.tumblr.com/sghs9ih/2tFlu5il8/justrealize.ttf");
}

:root {
    --police-script: "Playwrite DE Grund", cursive;
    --police-serif: Georgia, "Times New Roman", Times, serif;

    --brun-fonce: #4f3f2e;
    --brun-texte: #70644b;
    --or: #caa862;
    --cuivre: #ad7f5b;
    --caramel: #b38861;
}


/* ==========================================================================
   2. BASE
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
}

header,
footer,
section,
article,
nav,
figure,
figcaption {
    display: block;
}

html,
body,
#wrap {
    width: 100%;
    height: 100%;
    min-width: 900px;
}

#wrap {
    overflow-x: hidden;
}

#container {
    margin: auto;
}


/* ==========================================================================
   3. EN-TÊTE ET REDIRECTION
   ========================================================================== */

#logo {
    text-align: center;
}

#logo img {
    width: 15%;
}

#bandeau img {
    display: block;
    width: 90%;
    min-width: 900px;
    margin: 0 auto;
    z-index: 10;
}

#redir {
    width: 100%;
    margin: 0 auto;
    padding-left: 20%;
    padding-right: 20%;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: 30px;
    line-height: 2;
}

#redir a {
    color: #633;
    text-decoration: none;
}

#strong {
    font-weight: normal;
}

/* Titre principal volontairement quasi invisible (blanc, 7px) */
h1 {
    width: 65%;
    padding-left: 20%;
    padding-right: 20%;
    font-size: 7px;
    font-weight: normal;
    color: #fff;
}

#constru {
    font-style: normal;
    font-weight: 700;
    text-align: center;
}


/* ==========================================================================
   4. SLIDER DES 4 VUES
   ========================================================================== */

#content {
    position: relative;
    width: 400%;
    overflow: hidden;
}

.vue {
    position: relative;
    float: left;
    width: 25%;
    height: 100%;
    background: #fff;
}

#slidshow {
    width: 1200px;
    height: 500px;
    margin: 0 auto;
    background: #666;
}

#amazingslider-2 {
    padding-bottom: 100px;
}

.slide {
    position: relative;
    flex-shrink: 0;
    width: 100%;
}

.caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.4);
    font-size: 18px;
    color: #fff;
}


/* ==========================================================================
   5. MENUS
   ========================================================================== */

/* Menu principal */
#menu {
    width: 50%;
    min-width: 900px;
    height: 30px;
    margin: 0 auto;
    list-style-type: none;
}

#menu li {
    float: left;
    width: 25%;
}

#menu li a {
    display: block;
    width: 100%;
    padding-top: 15px;
    padding-bottom: 10px;
    font-family: var(--police-script);
    font-size: 25px;
    text-align: center;
    text-decoration: none;
    color: var(--or);
}

#menu li a:hover {
    color: var(--cuivre);
}

/* Sous-menu */
#Sousmenu {
    width: 100%;
    padding-top: 5%;
    padding-bottom: 10%;
    font-family: var(--police-script);
    font-size: 20px;
    font-weight: normal;
    font-style: italic;
    line-height: 3;
    text-align: center;
    color: var(--brun-texte);
}

#Sousmenu a {
    color: var(--brun-texte);
}

#Sousmenu a:hover {
    color: var(--or);
}

#Sousmenu p {
    float: left;
    width: 100%;
}


/* ==========================================================================
   6. TEXTES : INTRO, LIVRE, TARIFS, TABLEAUX
   ========================================================================== */

#intro {
    width: 65%;
    padding-top: 50px;
    padding-left: 20%;
    padding-right: 20%;
    overflow: hidden;
    font-family: var(--police-script);
    font-size: 17px;
    font-style: italic;
    line-height: 2;
    color: var(--brun-fonce);
}

#intro span {
    font-size: 18px;
    color: var(--caramel);
}

.titre-livre {
    font-weight: 800;
}

#descriptionlivre {
    padding: 2% 0 3%;
    font-family: var(--police-serif);
    font-size: 16px;
    font-style: italic;
    line-height: 1.5;
    color: var(--brun-texte);
}

#Livre span {
    color: var(--cuivre);
}

.tarifs {
    padding-left: 15%;
    padding-right: 15%;
    font-family: var(--police-serif);
    font-size: 16px;
    font-style: italic;
    line-height: 1.5;
}

.tarifs span {
    color: var(--cuivre);
}

table {
    padding-top: 1%;
    padding-bottom: 2%;
    padding-left: 15%;
    padding-right: 15%;
    font-family: var(--police-serif);
    font-size: 16px;
    font-style: italic;
    line-height: 1.8;
}

th {
    font-family: var(--police-serif);
    font-size: 16px;
    font-weight: normal;
    text-align: left;
    color: var(--cuivre);
}

td {
    padding-right: 10%;
}


/* ==========================================================================
   7. GALERIE ET LIGHTBOX
   ========================================================================== */

.galerie {
    width: 100%;
    padding-bottom: 20px;
    overflow: hidden;
    background-color: #000;
    font-family: var(--police-script);
    font-size: 16px;
    font-weight: normal;
    font-style: italic;
    line-height: 2;
    text-align: center;
}

.titre p {
    width: 100%;
    margin-top: 10%;
    padding-bottom: 20px;
    padding-left: 10%;
    background: #000;
    font-family: var(--police-script);
    font-size: 20px;
    color: #fff;
}

.mini {
    width: 200px;
    cursor: pointer;
}

.Horiz {
    width: 45%;
    padding-left: 20px;
}

.Vertic {
    width: 30%;
    padding-left: 20px;
}

.hdp img {
    width: 5%;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.lightbox:target {
    display: flex;
}

.lightbox img {
    width: 60%;
    height: auto;
    max-width: 90%;
    max-height: 90%;
}


/* ==========================================================================
   8. PAGES DIVERSES
   ========================================================================== */

#ENTETE_titre {
    padding-top: 30px;
    padding-bottom: 60px;
    font-family: "Just Realize";
    font-size: 25px;
    font-weight: normal;
    font-style: normal;
    color: var(--brun-fonce);
}

#CORP {
    font-family: var(--police-serif);
    font-size: 16px;
    font-style: italic;
    text-align: center;
}

#CORP a {
    color: var(--caramel);
}

#compte {
    clear: both;
    font-family: var(--police-serif);
    font-size: 16px;
}

#copyright {
    padding-top: 1000px;
    visibility: hidden;
}

.fb-like {
    width: 100%;
    padding: 20px;
    text-align: center;
}


/* ==========================================================================
   9. FORMULAIRE DE CONTACT
   ========================================================================== */

#Formulaire {
    width: 50%;
    margin: 0 auto;
    padding: 20px;
    font-family: var(--police-serif);
    font-size: 16px;
    font-style: italic;
    text-align: center;
}

#Formulaire p {
    margin: 20px;
}

form {
    padding: 20px;
    font-family: var(--police-serif);
    font-size: 16px;
}

form p {
    clear: both;
    margin-bottom: 15px;
    color: #666;
}

.consigne {
    float: left;
    width: 30%;
}

#objet,
#mail {
    width: 500px;
}

#message {
    width: 500px;
    height: 400px;
}

.champs {
    width: 800px;
    padding-right: 300px;
    border: solid 1px #333;
    font-family: var(--police-serif);
    font-size: 15px;
    color: #666;
    resize: none;
}

#go {
    width: 100px;
    height: 20px;
    background: #666;
    color: #fff;
}

.error {
    padding: 60px;
    color: #f00;
}

#post {
    width: 20%;
    margin: 0 auto;
    padding-top: 20px;
}

#valid {
    float: left;
    padding: 15px;
    font-family: var(--police-serif);
    font-size: 17px;
    font-style: italic;
    line-height: 2;
    color: var(--brun-fonce);
}

#pous {
    float: left;
    width: 10%;
}


/* ==========================================================================
   10. FORMULAIRE DE PRÉCOMMANDE
   ========================================================================== */

.formulaire-commande {
    margin-top: 30px;
    padding: 30px;
    box-sizing: border-box;
    background: #fbf8f3;
    border: 1px solid #dfd2c2;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(79, 63, 46, 0.06);
    color: var(--brun-fonce);
    font-style: normal;
    line-height: 1.6;
}

.formulaire-commande h3 {
    margin: 0 0 10px;
    font-size: 23px;
    line-height: 1.4;
    text-align: center;
}

.formulaire-commande > p {
    text-align: center;
}

/* Sections */

.formulaire-commande .section-formulaire {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #dfd2c2;
}

.formulaire-commande .titre-section {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: bold;
    color: #80664b;
}

/* Grille de champs sur deux colonnes */

.formulaire-commande .grille-champs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 15px;
}

.formulaire-commande .champ {
    min-width: 0;
}

.formulaire-commande .champ-large {
    grid-column: 1 / -1;
}

/* Libellés */

.formulaire-commande label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.5;
    color: var(--brun-fonce);
}

.formulaire-commande .facultatif {
    font-size: 11px;
    font-weight: normal;
    color: #837363;
}

/* Champs de saisie */

.formulaire-commande input:not([type="hidden"]),
.formulaire-commande textarea {
    display: block;
    width: 100%;
    min-height: 45px;
    margin: 0;
    padding: 11px 12px;
    box-sizing: border-box;
    border: 1px solid #d8c9b7;
    border-radius: 6px;
    background: #fffefa;
    color: var(--brun-fonce);
    font-family: inherit;
    font-size: 14px;
    font-style: normal;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.formulaire-commande textarea {
    min-height: 105px;
    resize: vertical;
}

.formulaire-commande input:focus,
.formulaire-commande textarea:focus {
    outline: none;
    border-color: #947758;
    box-shadow: 0 0 0 3px rgba(148, 119, 88, 0.13);
}

/* Récapitulatif */

.formulaire-commande .recapitulatif {
    margin-top: 28px;
    padding: 18px;
    border-radius: 8px;
    background: #f1e8dc;
    text-align: center;
}

.formulaire-commande .recapitulatif-titre {
    margin: 0 0 5px;
    font-size: 14px;
}

.formulaire-commande .recapitulatif-prix {
    margin: 0;
    font-size: 27px;
    font-weight: bold;
    line-height: 1.4;
}

.formulaire-commande .recapitulatif-port {
    margin: 4px 0 0;
    font-size: 12px;
}

/* Bouton */

.formulaire-commande button {
    display: block;
    width: 100%;
    min-height: 50px;
    margin-top: 22px;
    padding: 13px 18px;
    border: none;
    border-radius: 7px;
    background: var(--brun-fonce);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.formulaire-commande button:hover {
    background: #6d5740;
}

.formulaire-commande button:focus-visible {
    outline: 3px solid #b49a7a;
    outline-offset: 3px;
}

/* Informations et messages */

.formulaire-commande .info-paiement {
    margin: 15px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: #756656;
    text-align: center;
}

.formulaire-commande #confirmation {
    font-weight: bold;
    text-align: center;
}

.formulaire-commande #confirmation:not(:empty) {
    margin-top: 20px;
}


/* ==========================================================================
   11. PIED DE PAGE
   ========================================================================== */

#footer {
    clear: both;
    margin-top: 100px;
    padding-top: 30px;
    background-color: #dad1bf;
    font-family: var(--police-script);
    text-align: center;
}

#footer a {
    color: var(--caramel);
    font-style: italic;
}


/* ==========================================================================
   12. PAGE LIVRE : DEUX COLONNES
   Gauche : description, formulaire, prix et bouton PayPal
   Droite : couverture du livre
   ========================================================================== */

#livre {
    clear: both;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "texte    couverture"
        "paiement couverture";
    column-gap: 5%;
    align-items: start;
    padding: 30px 5% 0;
}

/* Colonne gauche */

#descriptionlivre {
    grid-area: texte;
}

.paiement-livre {
    grid-area: paiement;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px 20px;
    margin-top: 30px;
    padding: 20px 30px;
    box-sizing: border-box;
    border: 1px solid #dfd2c2;
    border-radius: 14px;
    background: #f1e8dc;
    font-family: var(--police-serif);
    color: var(--brun-fonce);
}

.libelle-prix {
    font-size: 14px;
}

.prix-livre {
    font-size: 27px;
    font-weight: bold;
    line-height: 1.4;
}

.frais-port {
    font-size: 12px;
    color: #756656;
}

/* Colonne droite : reste visible pendant le défilement du formulaire */

#couvlivre {
    grid-area: couverture;
    position: sticky;
    top: 20px;
}

/* ==========================================================================
   12 bis. GALERIE DU LIVRE : SLIDER + VISIONNEUSE (popup)
   ========================================================================== */

/* ----- Slider ----- */

.slider {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.slider-fenetre {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(79, 63, 46, 0.2);
}

.slider-piste {
    display: flex;
    transition: transform 0.4s ease;
}

.diapo {
    flex: 0 0 100%;
    aspect-ratio: 4 / 5;          /* à adapter selon tes visuels */
    background: #f1e8dc;
    cursor: zoom-in;
}

.diapo img,
.diapo video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;            /* "contain" pour ne rien rogner */
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: var(--brun-fonce);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.slider-btn:hover {
    background: #fff;
}

.slider-prev { left: 8px; }
.slider-next { right: 8px; }

.slider-points {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.slider-points button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #dfd2c2;
    cursor: pointer;
}

.slider-points button.actif {
    background: var(--cuivre);
}

/* ----- Visionneuse (popup plein écran) ----- */

.visionneuse {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.visionneuse::backdrop {
    background: rgba(40, 30, 20, 0.9);
}

.lb-media {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 70px;
}

.lb-media img,
.lb-media video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
}

.lb-fermer,
.lb-btn {
    position: absolute;
    z-index: 2;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--brun-fonce);
    cursor: pointer;
}

.lb-fermer {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    font-size: 28px;
}

.lb-btn {
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    font-size: 32px;
    line-height: 1;
}

.lb-prev { left: 12px; }
.lb-next { right: 12px; }

.lb-compteur {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-family: var(--police-serif);
    font-size: 14px;
}
3. CSS : section 14, dans le @media (max-width: 600px)




/* ==========================================================================
   13. POPUP DE PAIEMENT
   Fenêtre <dialog> ouverte après l'envoi des coordonnées
   ========================================================================== */

/* margin: auto est indispensable : le reset "* { margin: 0 }" décentrerait le popup */
.popup-paiement {
    width: min(90%, 460px);
    margin: auto;
    padding: 0;
    border: 1px solid #dfd2c2;
    border-radius: 14px;
    background: #fbf8f3;
    box-shadow: 0 10px 40px rgba(79, 63, 46, 0.25);
    color: var(--brun-fonce);
    font-family: var(--police-serif);
    line-height: 1.6;
    text-align: center;
}

.popup-paiements {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 20px 0;
}
.popup-wero { display: inline-block; text-align: center; max-width: 180px; }
.popup-wero img { display: block; width: 80%; margin: 0 auto 8px; }
.popup-wero p { font-size: 0.85em; margin: 0; }
.popup-note { font-size: 0.85em; }

.popup-paiement::backdrop {
    background: rgba(79, 63, 46, 0.55);
}

.popup-contenu {
    padding: 30px;
}

.popup-paiement h3 {
    margin-bottom: 12px;
    font-size: 23px;
    line-height: 1.4;
}

.popup-paiement p {
    margin-bottom: 12px;
}

.popup-paypal {
    display: inline-block;
    margin-top: 10px;
}

.popup-paypal img {
    max-width: 50%;
    height: auto;
}

.popup-fermer {
    display: block;
    margin: 20px auto 0;
    padding: 5px 10px;
    border: none;
    background: none;
    color: #756656;
    font-family: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.popup-fermer:hover {
    color: var(--brun-fonce);
}


/* ==========================================================================
   14. RESPONSIVE
   (en dernier pour l'emporter sur les règles de base à spécificité égale)
   ========================================================================== */

@media screen and (max-width: 600px) {

    /* Formulaire de précommande */
    .formulaire-commande {
        padding: 20px 16px;
        border-radius: 10px;
    }

    .formulaire-commande h3 {
        font-size: 21px;
    }

    .formulaire-commande .grille-champs {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .formulaire-commande .champ-large {
        grid-column: auto;
    }

    /* Page livre : une seule colonne, couverture en premier */
    #livre {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        grid-template-areas:
            "couverture"
            "texte"
            "paiement";
    }

    #couvlivre {
        position: static;
        width: 70%;
        margin: 0 auto;
    }
	
	css
    /* Galerie du livre */
    .lb-media {
        padding: 60px 10px;
    }

    .lb-btn {
        width: 38px;
        height: 38px;
    }

}