/* ################################# */
/* Gestion des styles de la page Web */
/* ################################# */


/* Gestion des sélecteurs universels */
/* --------------------------------- */

* {
    margin:0;
    padding:0;
    box-sizing: border-box;
}

/* Gestion des variables  */
/* ---------------------- */

:root {

    --Largeur_Page: 90%;
    --Couleur_Defaut: black;
}

p {
    --Taille_Police:1rem;
}

h2 {
    --Taille_Titre:2rem;
    --Couleur_Titre: brown;
}

h3 {
    --Taille_SousTitre:1.3rem;
    --Couleur_SousTitre: brown;
}

/* Gestion des balises de base  */
/* ---------------------------- */

html {
    scroll-behavior: smooth;  
}

body {
    width: var(--Largeur_Page);
    margin:20px auto;
    border: 1px outset #fff;
    background-image: url(IMG/Background.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 10px;
    padding: 10px;
}

p {
    font-size: var(--Taille_Police);
    color: var(--Couleur_Defaut);
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-weight: normal;
}

h1 {
    font-size: 3.5rem;
    padding: 10px;
    margin: 10px;
    color: #6d3a22;
   font-family: "Anta", sans-serif;
   font-weight: 400;
   font-style: normal;
   font-weight: bold;
   text-align: center;
}

h2 {
    font-size: var(--Taille_Titre);
    color: var(--Couleur_Titre);
    font-style: italic;
    margin-bottom: 15px;
    margin-top: 15px;
    text-decoration: underline;
}

h3 {
    font-size:var(--Taille_SousTitre);
    color:var(--Couleur_SousTitre);
    font-style: italic;
    margin-bottom: 30px;
    margin-top: 15px;
}

ul {
    list-style-type: none;
    text-align: center;
    border: 2px solid #625d5d;
    border-radius: 16px;
    box-shadow: 0px 10px 10px 0px rgba(0,0,0,0.5);
}

li { padding: 10px; }


/* Imbrication native en CSS */
/* https://fr.wikijournal.org/wiki/Nouvelles_fonctionnalit%C3%A9s_CSS_en_2025_:_Aper%C3%A7u_des_changements_cl%C3%A9s */

a {
    text-decoration: none;
    color:brown;
    /* On pourra imbriquer du code comme pour le SAS afin d'éviter les répétitions */
    &:hover{ text-decoration: underline;}
}

.section {
    width: 90%;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    
}

article {
    width: 300px;
    padding:10px;
    margin:10px;
    border:1px solid #000;
    border-radius:20px;
    background-color: #fff;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.4);
}

/* Gestion des classes et des ID */
/* ----------------------------- */

/* Gestion du menu */
#Menu {
    background-color: antiquewhite;
    border-radius: 16px;
    margin: 30px;
}

.listeMenu {
    display: inline-block;
    padding: 10px;
    margin:10px;
}
/* ----------------------------- */


/* Responsive des images */
.images {
    width: 100%;
    height: auto;
}
/* ----------------------------- */

/* Module de présentation */
.center {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    background-color: #ccc;
    border-left: solid 50px #fff;
    border-radius: 0 20px 20px 0;
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: start;
    padding-top: 6px;
    padding-bottom: 8px;
    padding-left: 20px;
    margin-top: 20px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.4);
}

/* Saut de ligne en CSS */
.margeBottom {margin-bottom: 20px;}

.lettrine {
    font-size: 4rem;
    font-family: "Anta", sans-serif;
    font-weight: 400;
    font-style: normal;
}
/* ----------------------------- */

/* Gestion du module Type de peinture */
.ListePeinture {
    text-align: start;
    background-color: #fff;
}

.Pictograme {
    font-size:2rem;
    font-style: italic;
}
/* ----------------------------- */

/* Gestion du module Porfolio */
.portfolio {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      padding: 2rem;
    }

.item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 1s;
}
.item:hover {
    transform: translateY(-10px) scale(1.2);
    cursor:zoom-in;
}
.item img {
    width: 100%;
    height: auto;
    display: block;
}
.item .caption {
    padding: 1rem;
    text-align: center;
    transition: 500ms;
    
}

.caption:hover {
    background-color: #000;
    color:#FFF;
    transform: translateY(10px) scale(1.2);
    overflow: hidden;
}
/* ----------------------------- */

/* Gestion du formulaire */
.container {
    max-width: 100%;
    border-radius: 5px;
    background-color: #f2f2f2;
    padding: 20px;
  }

label {
    color:#000;
  }

input[type=text], input[type=email], select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
  }

  input[type=submit] {
    background-color: #BA8E7A;
    color: black;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  input[type=submit]:hover {
    background-color:brown;
  }
/* Ces deux pseudo classes vont de suite donner l'information si elle est OK ou KO */
  input[type=email]:invalid {
    border-color: red;
}

input[type=email]:valid {
    border-color: green;
}

  /* Gestion de la carte */

  .GoogleMaps {
    width:90%;
    text-align: center;
  }
/* ----------------------------- */


/* Gestion du pied de Page */
footer {
    color: blanchedalmond;
    font-size: 1rem;
    width: 100%;
    margin:10px;
    padding: 10px;
    /* border:2px solid #fff; */
    border-radius: 10px;
    display: block;
}

footer p {
    font-size: 1rem;
    color: white;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-weight: normal;
    text-align: center;
}
/* ----------------------------- */


/* Gestion de la class Up(bouton qui revenur en haut) */
.Up {
    position:fixed;
    background-color: #BA8E7A;
    padding: 8px;
    border: 1px solid #67361f;
    border-radius: 8px;
    right:10px;
    bottom:10px;
}

.Up a {
    color: #f2f2f2;
}

.Up a:hover {
    color:#000;
}
/* ----------------------------- */



/* Divers et autres */
/* .ListeArticles, .ListeTypes {
    text-align: start; 
    margin: 50px;
    font-size: 1.4rem;
} */

/* Gestion des réseaux sociaux */

/* .Facebook {
    position: absolute;
    top: 0;
    left:0;
} */

/* Gestion des media queries */
/* Les media queries vont permettre de gérer la gestion des blocs en fonction de la taille de l'écran */

/* Gestion du footer avec les réseaux sociaux - Suite */





@media screen and (min-width: 200px) and (max-width: 640px) {

    h1 {
        font-size: 2.5rem;
        padding: 10px;
        margin: 10px;
        color: #BA8E7A;
       font-family: "Anta", sans-serif;
       font-weight: 400;
       font-style: normal;
       font-weight: bold;
       text-align: center;
        
    }
    
    h2 {
        font-size: var(--Taille_Titre);
        color: var(--Couleur_Titre);
        font-style: italic;
        margin-bottom: 10px;
        margin-top: 10px;
    }
    
    .listeMenu {
        display: block;
        padding: 10px;
        margin:10px;
        &li {
            font-size: 1.2rem;
        }
    }

    .GoogleMaps {
        width:50%;
        text-align: center;
        
      }

  }
