/* ======================= */
/* GLOBAL */
body {
    margin: 0;        /* supprime les marges par défaut */
    padding-top: 80px; /* espace pour le menu fixe */
}
 html, body {
  height: 100%;
  margin: 0;
  /* background-image: url("../images/hero8.jpg"); */
  background-size: ;
  background-repeat: repeat;
  background-position: center;
  background-color: #ece8deff  ;
}   
* {box-sizing:border-box; margin:0; padding:0;}
body {font-family: Arial, sans-serif; line-height:1.6;}
a {text-decoration:none;}

/* ======================= */
/* HEADER */
header {
    background: 
        linear-gradient(rgba(204, 0, 0, 0.127), rgba(204, 0, 0, 0.538)),
        url('../images/header3.png') no-repeat center center; /* chemin relatif vers ton image */
    background-size: contain;
    background-color: #fdd109;
    color: white;
    padding: 80px 20px;
    text-align: center;
}
header h1 { 
    font-size: 3em; 
    margin-bottom: 15px; 
    color: #cc0000;  
}

header p { 
    font-size: 1.4em; 
    margin-bottom: 25px; 
    color: #fff; 
}

header .btn { 
    margin-top: 15px; 
    display:inline-block;
    background:#FFBF00;
    color:#2c3e50;
    padding:15px 30px;
    border-radius:5px;
    font-weight:bold;
    position:relative;
    overflow:hidden;
    transition: background 0.3s, color 0.3s;
}

header .btn::after {
    content:"";
    position:absolute;
    top:0; left:-75px;
    width:50px; height:100%;
    background:rgba(255,255,255,0.4);
    transform:skewX(-25deg);
    transition:left 0.7s ease;
}

header .btn:hover::after { left:120%; }
header .btn:hover { background:#e6ac00; color:white; }

/* ======================= */
/* TITRES UNIFORMES AVEC SOULIGNEMENT GLISSANT ET CURSEUR INTERACTIF */
/* ======================= */

h1, h2, h3 {
  color: #cc0000;
  font-weight: 700;
  display: block;            
  width: fit-content;        
  margin: 0 auto 1rem auto;  
  position: relative;
  transition: transform 0.3s ease;
  cursor: default; /* flèche normale par défaut */
}

/* Curseur en main au survol */
h1:hover, h2:hover, h3:hover {
  cursor: pointer; /* main pour indiquer l’interaction */
}

/* Soulignement dynamique qui glisse depuis le centre */
h1::after, h2::after, h3::after {
  content: "";
  position: absolute;
  bottom: -6px;          
  left: 50%;             /* commence au centre */
  width: 0%;             /* largeur initiale 0 */
  height: 3px;           
  background-color: #cc0000;
  transform: translateX(-50%); /* centrer le point de départ */
  transition: width 0.4s ease; 
}

h1:hover::after, h2:hover::after, h3:hover::after {
  width: 100%;           /* s’étend jusqu’à la largeur totale du texte */
}

/* ======================= */
/* NAVIGATION */

nav {
  background: #2c3e50;
  position: fixed;  /* fixe le menu en haut */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;  /* au-dessus du reste */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 5%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav .logo-container {display:flex; align-items:center; height:60px;}
nav .logo-container img {height:100%;}
nav .logo-container span {color:#FFBF00; font-weight:bold; font-size:1.5rem; margin-left:10px;}
nav ul {list-style:none; display:flex; gap:20px; align-items:center;}
nav ul li {position:relative;}
nav ul li a {
  color:white; font-weight:bold; padding:10px 15px;
  border-radius:5px; display:flex; align-items:center;
  transition:all 0.3s ease;
}
nav ul li a:hover {background:#FFBF00; color:#2c3e50;}

/* Dropdown */
nav ul li .sub-menu {
  position:absolute; top:100%; left:0;
  background:#2c3e50; border-radius:0 0 8px 8px;
  display:none; flex-direction:column;
  min-width:220px; box-shadow:0 4px 10px rgba(0,0,0,0.25);
  z-index:1;
}
nav ul li:hover > .sub-menu {display:flex;}
nav ul li .sub-menu li a {padding:12px 20px; width:100%; white-space:nowrap;}
nav ul li .sub-menu li a:hover {background:#FFBF00; color:#2c3e50;}

/* Menu droite */
.menu-right {display:flex; gap:10px; position:relative; z-index:0;}
.menu-right a {
  background:#FFBF00; color:#2c3e50;
  font-weight:bold; padding:8px 15px; border-radius:5px;
  display:flex; align-items:center; transition:all 0.3s;
  position:relative; z-index:100001;
}
.menu-right a i {margin-right:5px;}
.menu-right a:hover {background:#e6ac00; color:white;}


    /* ===== BOUTONS AMBRE ===== */
   .btn {
        display: inline-block;
        background: #FFBF00; /* Ambre */
        color: #2c3e50;
        padding: 15px 30px;
        border-radius: 5px;
        text-decoration: none;
        font-weight: bold;
        position: relative;
        overflow: hidden;
        transition: background 0.3s, color 0.3s;
    }
    .btn::after {
        content: "";
        position: absolute;
        top: 0;
        left: -75px;
        width: 50px;
        height: 100%;
        background: rgba(255,255,255,0.4);
        transform: skewX(-25deg);
        transition: left 0.7s ease;
    }
    .btn:hover::after { left: 120%; }
    .btn:hover {
        background: #e6ac00; /* Ambre foncé */
        color: white;
    }

 #contact {text-align:center;}
 #contact .btn {margin-top:15px;}


/* TOOLTIP */
a[data-tooltip] {
  position: relative;
  z-index:100001;
}
a[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; top:120%; left:50%;
  transform:translateX(-50%);
  background: rgba(245,159,11,0.92);
  color:#1E2A38;
  padding:6px 12px; border-radius:8px;
  white-space:nowrap;
  opacity:0; pointer-events:none;
  transition:opacity 0.3s ease, top 0.3s ease;
  z-index:100002;
}
a[data-tooltip]:hover::after {opacity:1; top:110%;}

/* Hamburger */
.hamburger {display:none; flex-direction:column; gap:4px; cursor:pointer;}
.hamburger span {background:#FFBF00; height:3px; width:25px; border-radius:2px; transition:all 0.4s;}

/* ======================= */
/* CONTENU */
section {padding:60px 20px; max-width:1100px; margin:auto;}
   
h2 {color:#cc0000;text-align:center;margin-bottom:50px;font-size:2.2em;}
.features {display:flex; flex-wrap:wrap; justify-content:space-around;}
.feature {
  background:white; border-radius:10px; padding:30px; margin:15px;
  border: 2px solid #fcd34d;
  flex:1 1 300px; text-align:center; box-shadow:0 4px 12px rgba(0,0,0,0.1);
  opacity:0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.feature i {font-size:3.5em; color:#cc0000; margin-bottom:20px;}
.feature h3 {margin-bottom:15px; font-size:1.5em;}
.feature p {font-size:1em; line-height:1.6em;}
footer {background:#333;color:white;text-align:center;padding:25px;font-size:0.95em;}
.fas {color: #cc0000;} 
.testimonials {display:flex; flex-wrap:wrap; justify-content:space-around;}
    .testimonial {
        background:white; border-radius:10px; padding:30px; margin:15px;
        flex:1 1 300px; text-align:center; box-shadow:0 4px 12px rgba(0,0,0,0.1);
        opacity:0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .testimonial p {font-style:italic;margin-bottom:15px;}
    .testimonial h4 {text-align:right;font-weight:bold;color:#cc0000;}
/* ======================= */
/* RESPONSIVE */
@media(max-width:900px){
  nav ul {flex-direction:column; gap:0; display:none; width:100%; background:#2c3e50; border-radius:0 0 12px 12px;}
  nav ul.active {display:flex;}
  .hamburger {display:flex;}
  nav ul li a {width:100%; text-align:center;}
  nav ul li .sub-menu {position:relative; top:0; min-width:100%;}
  a[data-tooltip]::after {display:none;}
}