
/* ============================================================
   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);

}


