/* ---------- Theme clair — fichier CSS complet ---------- */
/* Variables thème clair */
:root{
  /* Surfaces */
  --bg: #F6F7F9;        /* fond général très clair */
  --card: #FFFFFF;      /* cartes / surfaces blanches */
  --muted: #E9EEF5;     /* zone douce, séparations */

  /* Accents */
  --primary: #f35b04;   /* terre battue */
  --accent: #FF7A59;    /* terre cuite pour rappel chaleureux */
  --success: #2BBF7E;

  /* Texte */
  --text: #0B1220;
  --subtext: #4B5563;

  /* autres */
  --radius: 12px;
  --card-shadow: 0 8px 24px rgba(11,18,32,0.06);
}

/* reset simple */
* {
  margin: 0;
  box-sizing: border-box;
}

/* typographie globale */
body {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--subtext);
  background: linear-gradient(180deg,rgba(246, 247, 249, 0.97) 70%, rgba(213, 233, 247, 1) 100%);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  max-width: 100%;
  overflow-x: hidden;
}

/* header / nav */
header,
footer {
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0.95));
  border-bottom: 1px solid rgba(11,18,32,0.04);
  padding: 12px 40px;
  width: 100vw; /*occupe toute la largeur de la fenetre*/
}

header > *, footer > *{
  max-width: none;
  margin: 0 auto;
  width: 100%;
}

/* menu centrée */
.menu{
    display: flex;
    justify-content: center;
}

.menu ul {
  list-style: none;
  padding: 6px;
  margin: 0;
  display: flex;
  gap: 6px;
  align-items: center;
  background: transparent;
}

.menu ul li {
  position: relative;
}

.menu ul li a {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  transition: background .18s ease, color .18s ease, transform .12s ease;
}

.menu ul li a:hover {
  background: #fff5eb;
  color: var(--primary);
  transform: translateY(-2px);
}

/* Sous-menu */
.menu ul li .submenu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  transition:
    opacity .20s ease,
    transform .20s ease,
    visibility 0s linear .20s;
}

.menu ul li .submenu li a {
  padding: 10px 14px;
  color: var(--text);
  white-space: nowrap;
}

.menu ul li:hover > .submenu,
.menu ul li:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: .12s, .12s, 0s;
}

/* liens généraux */
a {
  color: var(--primary);
  text-decoration: none;
}

/* liens dans carousel*/
.carousel a {
  color: var(--accent);
}

/* titres */
h1 {
  font-size: 2.4rem;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  margin-bottom: 40px;
}

h2 {
  color: var(--text);
  font-size: 2rem;
  text-align: center;
  margin: 60px auto 100px;
}

/* paragraphes */
p {
  font-size: 1.1rem;
  color: var(--subtext);
}

em{
  font-style: normal;
  color:var(--accent);
}

.phrase-accueil{
width:85%;
font-size: 1.2rem;
font-weight: 600;
text-align: center;
margin: auto;
padding: 0 6%;
}

/* layout accueil */
.accueil-introduction {
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: center;
  gap: 30px;
  padding: 40px;
}

/* image accueil */
.image_accueil {
  width: 100%;
  max-width: 700px;
  height: 500px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  background-image: url('../images/image_accueil.png');
  background-position: center;
  background-size: cover;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--muted);
}

/* liens icônes footer */
.lien-icone img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* footer layout */
footer {
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  margin-top: 150px;
}

/* CARROUSEL */
.carousel {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 300px;
  overflow: hidden;
  margin: 0 auto 100px auto;
  padding: 0; /* supprimer padding ici pour éviter décalage au cour du défilement */
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(250,250,252,0.9));
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.06);
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  height: 100%; /* s'assurer que les slides remplissent le carousel */
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center; /* centrage vertical */
  align-items: center;     /* centrage horizontal */
  text-align: center;
  padding: 0 30px;         /* padding horizontal seulement */
  box-sizing: border-box;   /* inclure padding dans largeur */
}

.slide h3 {
  font-size: 1.8rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--accent);
  opacity:0.8;
  margin-bottom: 14px;
}

/* dots */
.dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(11,18,32,0.08);
  border-radius: 50%;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}

.dot:hover { transform: scale(1.08); }
.dot.active {
  background-color: var(--primary);
  box-shadow: 0 6px 18px rgba(108,99,255,0.18);
}

/* petits ajustements listes / textes */
li {
  font-size: 1.05rem;
  color: var(--text);
}


/* responsive */
@media screen and (max-width: 996px) {
  .accueil-introduction {
    display: block;
    padding: 28px 20px;
  }
  .image_accueil {
    height: 360px;
    max-width: 100%;
    margin-top: 18px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; margin-bottom: 18px; }

  .carousel { height: 260px; padding: 16px; }
  section { padding: 28px 18px; }
}

/* footer */

footer {
flex-direction: column;
align-items: center;
gap: 10px;
}


.footer-top {
padding-top: 20px;
display: flex;
align-items: center;
justify-content: center;
gap: 32px;
flex-wrap: wrap;
}


.footer-logo img {
width: 80px;
height: 70px;
object-fit: contain;
opacity: 0.7;
transition: opacity 0.25s ease, transform 0.15s ease;
}

.footer-logo img:hover {
opacity: 1;
transform: translateY(-10px);
}

.footer-socials {
display: flex;
gap: 40px;
}

.footer-socials img {
width: 80px;
height: 70px;
opacity: 0.7;
transition: opacity 0.25s ease, transform 0.15s ease;
}

.footer-socials img:hover {
opacity: 1;
transform: translateY(-10px);
}


.footer-bottom {
text-align: center;
font-size: 0.9rem;
color: #555;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}


.footer-bottom a {
font-weight: 400;
text-decoration: none;
transition: color 0.2s ease;
}


.footer-bottom a:hover {
font-weight: 600;
}


@media (max-width: 600px) {
footer {
padding: 24px 16px;
gap: 18px;
}


.footer-socials img {
width: 30px;
}


.footer-bottom {
font-size: 1.2rem;
}
}
