/* --- VARIABLES D'IDENTITÉ VISUELLE (WOMMATE) --- */
:root {
    --primary-color: #1b91b1; /* Bleu Wommate */
    --secondary-color: #dc2c8c; /* Rose Wommate */
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --nav-height: 80px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    line-height: 1.2;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}

/* --- HEADER & NAVIGATION --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Liens de navigation */
.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    position: relative; /* pour l'underline animé */
}

/* Ligne animée sous le lien */
.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Hover / état actif pour les liens */
.nav-link:hover {
    color: var(--primary-color);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link.active {
    color: var(--primary-color);
}
/* Bouton d'appel à l'action */
.btn-cta {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
}
.btn-cta:hover {
    background-color: transparent;
    color: var(--secondary-color);
}
/* Toggle mobile (hamburger) - caché sur desktop */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}
.mobile-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: var(--transition);
}
/* Animation du hamburger quand actif */
.mobile-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
/* --- HERO SECTION --- */
.hero {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #e0f2f7 100%);
}

.hero-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-gray);
}
.hero-content div {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-content div a:nth-child(2) {
    padding: 12px 24px;
    font-weight: 700;
    color: var(--bg-light);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    background-color: var(--primary-color);
    transition: var(--transition);
}
.hero-content div a:nth-child(2):hover {
    background-color: transparent;
    color: var(--primary-color);
}
.hero-img-box {
    width: 100%;
    border-radius: 20px;
    box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
    transition: transform 0.5s ease;
}

.hero-img-box:hover {
    transform: scale(1.02);
}
.hero-img-box img {
    width: 100%;
    border-radius: 20px;
    display: block;
}
/* --- SECTION CONCEPT --- */

#pourquoi {
    box-shadow: var(--shadow);
    border-radius: 15px;
    padding: 0px 40px 80px 40px;
    text-align: center;
}
#whyBoxes{
    background-color: white;
    border-radius: 10px;
    border: #1e293b solid;
    box-shadow: 4px 7px 1px 0px #1e293b;
    transition: transform 0.5s ease;

}
#whyBoxes:hover {
    transform: scale(1.02);
    cursor:cell;
}
#pourquoi h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
#pourquoi div:nth-child(2) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
}
#pourquoi div:nth-child(2) div h4 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}
#pourquoi div:nth-child(2) div {
    padding: 20px;
}

.section-title {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
    
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-left: 40px;
    padding-right: 40px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 5px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-top-color: var(--secondary-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}



/* --- RESPONSIVE / MENU MOBILE --- */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        height: calc(100vh - var(--nav-height));
        padding: 40px;
        transition: 0.5s ease;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }
}

/*PAGE CONTACT*/

#lastContact {
    color: white;
    background: #1B91B1;
    padding-top: 20px;
}
/* #DC2C8C Rose */
h1 {
    margin: 0;
    text-align: center;

}
.p1 {
    text-align: center;
    font-size: 20px;
    padding-bottom: 10px;
}

.formulaire {
    display: flex;
    flex-direction: column;
    padding-left: 20px;
    padding-bottom: 20px;
}
#textalignStart{
    text-align: start;
}
label{
    margin-bottom: 5px;
}
select {
    border-radius: 5px;
    width: 20%;
    height: 20px;
}
#genre{
    height: 30px;
}
textarea{
    border: solid 1px black;
    box-shadow: -1px 3px black;
    border-radius: 5px;
    width: 50%;
    height: 50px;
    resize: none; /*Pour ne pas laisser l'utilisateur étirer le textarea*/
    padding-left: 10px;
}


input {
    border-radius: 5px;
    width: 20%;
    height: 20px;
} 
#valider:hover{
    background: #DC2C8C;
}
#valider {
    color: white;
    background: blue;
    cursor: pointer;
    transition: 0.2s;
    width: 10%;
    margin-top: 10px;
    width: 15%;
    height: 30px;
 }
.lastdiv{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 20px;
    padding-bottom: 20px;
}




/* CONCEPT

/* selecteur qui selectionne tout les elements de la page */
* {
  margin: 0;
  padding: 0;
   box-sizing: border-box;   /*la largeur et la hauteur incluent padding et bordure */
}

/* VARIABLES*/
 :root {                       /*représente l’élément racine du documen */
  --primary: #1B91B1;
   --secondary: #DC2C8C;    /*variables personnalisées que tu peux réutiliser dans ton CSS. */
  --white: #ffffff;
  --gray: #f4f4f4;
}

/* GLOBAL */
body {
  font-family: Arial, sans-serif;
  color: #333;
}

/* NAVBAR */
.navbar {
  display: flex; /* conteneur flex pour afficher les éléments sur une seule ligne */
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  padding: 15px 30px;
  color: var(--white);
}



/* Menu */
.menu {
  list-style: none;
  display: flex;      /* conteneur flex pour afficher les éléments sur une seule ligne */
  gap: 25px;          /* Ajoute un espace de 25px entre chaque élément de la liste */

}

.menu a {
  text-decoration: none;
  color: white;
}

/* Menu actif */
.menu a.active {
  background-color: var(--secondary);
  padding: 8px 14px;
  border-radius: 20px;
}

/* Hamburger */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* ================= SECTIONS ================= */

.page{
  padding-top: 60px;
}

/* ================= CONCEPT ================= */
.concept {
  background: linear-gradient(
    135deg,
    #1B91B1,
    #DC2C8C
  ); 
  color: white;
}

.content {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 40px; /* Ajoute un espace de 40px entre chaque élément de la liste */
}

.content img {
  width: 45%;
  border-radius: 12px;
}

.text {
  background: rgba(255,255,255,0.1);
  padding: 25px;
  border-radius: 12px;
  line-height: 30px;
}

/*  MÉTHODOLOGIE  */
.methodology {
  background-color: var(--gray);
  text-align: center;
}


.cards {
  display: flex;
  gap: 20px;  /* Ajoute un espace de 20px entre chaque élément de la liste */
  max-width: 1100px;
  margin: auto;
  padding-top: 30px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  flex: 1;
  border-top: 5px solid var(--secondary);
}

/* Image dans les cards */
.card img {
  width: 100%;           /* L’image prend toute la largeur de son conteneur (.card) */
  height: 160px;           
  object-fit: cover;     /* L’image remplit le conteneur sans déformer, en coupant si nécessaire */
  border-radius: 8px;      
  margin: 10px 0 15px;   /* Marge : 10px en haut, 0 à gauche/droite, 15px en bas */
}
/* ================= RÉSULTATS ================= */
.resultats {
  max-width: 600px;
  margin: 40px auto;
  background: white;
  padding: 25px;
  border-radius: 10px;
}
.resultats ul {
  list-style: none;      /* enlève les points */
  padding-left: 0;       /* enlève l’espace à gauche */
  margin: 0;
}
.resultats li {
  padding: 5px 0;       /*espacer les lignes */
}

/* ================= RESPONSIVE ================= */
@media screen and (max-width: 860px){
  .boxes{
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .designTh, .htmlCss, .jsDiv{
    width: 50vw;
  }
}
@media (max-width: 768px) {
  .content {
    flex-direction: column;
    text-align: center;
  }

  .cards {
    flex-direction: column;
  }

  .menu {
    display: none;
    flex-direction: column;
    background: var(--primary);
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
  }


  .menu-toggle {
    display: block;
  }

}
@media screen and (max-width: 480px){
    
    .boxes img{
        width: 100px;
    }
    .boxes p{
        font-size: 0.8rem;
    }
    .boxes input{
        width: 90px;
    }
    
    .card-icon{
        font-size:medium;
    }
    .concept-grid{
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 60vw;
        align-items: center;
    }
    #concept{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #concept div{
        width: 50vw;
    }
    
}
@media screen and (max-width: 300px){
    #whyBoxes p{
        font-size: 0.8rem;
        text-align: center;
        
    }
}

.formations {
    margin-top: 80px;
    padding-top: 40px;
    background-color: rgba(255, 255, 255, 0.95);
    padding-bottom: 40px;
    }
    
.formations h1{
    color:#1b91b1;
    text-align: center;
    margin-bottom: 80px;
}
input{
    width: 150px;
    height:35px;
    color: black;
    background: dodgerblue;
    border-radius: 8px;
    border: none;
    margin-bottom: 30px;
}
#nom , #prenom {
    padding-left: 10px;
    background: white;
    border: solid 1px black;
    box-shadow: 0px 0px black;
    border-radius: 5px;
}
.designTh, .htmlCss, .jsDiv{

    display: flex;
    flex-direction: column;
    align-items: center;
    border: solid 1px black;
    box-shadow: 0px -6px 8px 4px black;
    border-radius: 5px;
    padding-top: 30px;
    transition: transform 0.5s ease;
}
.designTh:hover {
    transform: scale(1.02);
}
 .htmlCss:hover {
    transform: scale(1.02);
}
.jsDiv:hover {
    transform: scale(1.02);
}

.boxes{
    display: flex;
    margin-left: 40px;
    margin-right: 40px;
    gap: 40px;
    justify-content: center;
}

footer{
    background-color:rgba(255,255,255,0.1);
    height: 10vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
