
/* ============================================================
   PROJET.CSS
   ============================================================

   Atelier numérique de menuiserie

   Auteur  : Patrick
   Version : 3.0
   Date    : 29 Juin 2026

   Feuille de style commune utilisée par :

      • generer_projet.py
      • generer_galerie.py

   ============================================================ */


/* ============================================================
   STYLE GÉNÉRAL
   ============================================================ */

/* ============================================================
   STYLE GENERAL
   ============================================================ */

body {

    background: #f6f6f6;

    color: #333;

    font-family: Georgia, "Times New Roman", serif;

    line-height: 1.7;

}





/* ============================================================
   TITRES
   ============================================================ */



h1 {

    text-align: center;

    font-size: 72px;

    margin-top: 50px;

    margin-bottom: 20px;

    color: #3a2c22;

}










h2 {

    text-align: center;
    font-size: 28px;
    font-weight: normal;
    color: #666;
    margin-bottom: 40px;

}

h3 {

    text-align: center;

    font-size: 28px;

    color: #8b5a2b;

    margin-top: -10px;

    margin-bottom: 50px;

    font-style: italic;

}






p {

    text-align: center;

    font-size: 28px;

    color: #666;

    margin-bottom: 50px;

}


/* ============================================================
   NAVIGATION (petites vignettes)
   ============================================================ */

.navigation {

    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 18px;

    margin: 35px auto;

}




.mini-carte{

    display:flex;
    align-items:center;
    justify-content:center;

    min-width:120px;
    height:70px;

    padding:0 25px;

    background:white;

    border-radius:18px;

    box-shadow:0 8px 25px rgba(0,0,0,.10);

    text-decoration:none;
    color:#333;

    font-size:18px;

    text-align:center;

    white-space:nowrap;

    transition:.2s;
}





.mini-carte:hover {

    transform: translateY(-4px);

    box-shadow: 0 12px 30px rgba(0,0,0,.18);

}


/* ============================================================
   CARTES PRINCIPALES
   ============================================================ */

.grille {

    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 30px;

    margin-top: 40px;

}

.carte {

    width: 250px;
    heprojet.cssight: 180px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: white;

    border-radius: 20px;

    text-decoration: none;
    color: #333;

    box-shadow: 0 4px 15px rgba(0,0,0,.15);

    transition: .20s;

}

.carte:hover {

    transform: translateY(-5px);

}

.icone {

    font-size: 60px;

    margin-bottom: 15px;

}


/* ============================================================
   GALERIE PHOTOS
   ============================================================ */

.galerie {

    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 25px;

}

.galerie figure {

    margin: 0;

    text-align: center;

}

.galerie img {

    width: 320px;
    height: auto;

    border-radius: 8px;

    box-shadow: 0 3px 8px rgba(0,0,0,.15);

    transition: .20s;

}

.galerie img:hover {

    transform: scale(1.03);
    transition: .25s;

}

.galerie figcaption {

    max-width: 330px;

    margin-top: 12px;

    margin-left: auto;
    margin-right: auto;

    text-align: center;

    font-size: 15px;

    line-height: 1.5;

    color: #555;

}


/* ============================================================
   VERSION MOBILE
   ============================================================ */

@media (max-width: 800px) {

    body {

        padding: 15px;

    }

    h1 {

        font-size: 42px;

    }

    h2 {

        font-size: 24px;

    }

    .carte {

        width: 90%;

    }

    .galerie img {

        width: 100%;

        max-width: 350px;

    }

}


/* ============================================================
   BOUTON RETOUR
   ============================================================ */

.retour-projet {

    text-align: center;

    margin-bottom: 50px;

}

.retour-projet a {

    display: inline-block;

    padding: 12px 24px;

    background: white;

    color: #5a3b20;

    text-decoration: none;

    border-radius: 30px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.10);

    transition: .2s;

}

.retour-projet a:hover {

    transform: translateY(-3px);

    box-shadow: 0 8px 20px rgba(0,0,0,0.15);

}


/* ===========================================================
    TELECHARGEMENTS
   ============================================================ */



.telechargements {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}



.document {

    width: 240px;
    min-height: 200px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    background: white;

    padding: 25px;

    border-radius: 18px;

    box-shadow: 0 4px 15px rgba(0,0,0,.12);

    text-align: center;

}










/*
.document {
    width: 280px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,.15);
}
*/



.document a {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 22px;
    border-radius: 25px;
    background: #8b5a2b;
    color: white;
    text-decoration: none;
}











.document a:hover {
    background: #5a3b20;
}



.document:hover{

    transform:translateY(-5px);

    transition:.25s;

}







.liste-documents {

    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 25px;

    max-width: 1200px;
    margin: 50px auto;

}












.document {

    display: flex;
    align-items: center;
    gap: 25px;

    background: white;

    padding: 20px 25px;

    border-radius: 18px;

    box-shadow: 0 4px 15px rgba(0,0,0,.12);

}

.document-icone {

    font-size: 42px;

}

.document-texte {

    flex: 1;

}

.document-texte h3 {

    margin: 0 0 6px 0;

    color: #5a3b20;

}

.document-texte p {

    margin: 0;

    text-align: left;

    font-size: 18px;

}

.document-texte small {

    color: #777;

}

.bouton-telecharger {

    display: inline-block;

    padding: 10px 20px;

    background: #8b5a2b;

    color: white;

    text-decoration: none;

    border-radius: 25px;

}

.bouton-telecharger:hover {

    background: #5a3b20;

}

.apercu-pdf {

    width: 100%;
    height: 500px;

    border: none;

    border-radius: 15px;

    margin-top: 20px;

}


.apercu-document {

    width: 160px;

    border-radius: 10px;

}

/* ============================================================
   VIDEOS
   ============================================================ */

.videos{

    max-width:1100px;

    margin:auto;

}

.video-bloc{

    margin:60px auto;

    text-align:center;

}

.video-bloc video{

    width:100%;

    max-width:900px;

    border-radius:15px;

    box-shadow:0 6px 18px rgba(0,0,0,.15);

}

.video-bloc p{

    margin-top:15px;

    font-size:20px;

    color:#555;

}




