/* ---------- 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;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* 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: 100%; /*occupe toute la largeur de la fenetre*/
}

header{
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* zone tampon à droite (équilibre visuel) */
.header-inner::after {
  content: "";
  flex: 0 0 120px;
}

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

/* ===========================
   LOGO HEADER
   =========================== */

.logo {
  position: static;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  line-height: 1;
  gap: 1px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.75;
}

.logo-icon {
  width: 34px;
  height: 34px;
  transform: translateY(-1px);
}

.logo-text {
  height: 26px;
  letter-spacing: 0.08em;
}

/* menu centrée */
.menu{
    display: flex;
    width : auto;
    position: relative;
    justify-content: center;
    align-items: center;
}

.menu-list {
display: flex;
gap: 20px;
flex: 1;
justify-content: center;
min-width: 520px;
}

.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: clamp(1.8rem, 5vw, 2.4rem);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  text-align: center;
  margin-bottom: 40px;
}

h2 {
  color: var(--text);
  font-size: clamp(1.4rem, 4vw, 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:90%;
font-size: clamp(1rem, 2.8vw, 1.2rem);
line-height: 1.65;
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);
  margin-left: auto;
  margin-right: auto;
  background-color: var(--muted);
  overflow: hidden; /* important */
}

.image_accueil img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 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 mise en page et ajustements */

@media screen and (max-width: 996px) {
  .accueil-introduction {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 20px;
    gap: 0; /* on gère les marges nous-mêmes */
    margin-top: 5%;
  }

  header nav.menu {
    display: none;
  }

  .accueil-introduction > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .phrase-accueil {
    width: 100%;
    max-width: 640px;
    margin-top: 5%;
    margin-bottom: 10%; /* +++ espace AVANT l’image */
    padding: 0 8px;
  }

  h1 {
    text-align: center;
  }

  .image_accueil {
    margin-top: 5%;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0; /* moins d’espace APRÈS */
    height: auto;
    aspect-ratio: 4 / 3; /* très propre sur mobile */
  }

  .image_accueil img {
    height: 100%;
  }

  section {
    padding-top: clamp(24px, 6vw, 36px);
    padding-bottom: clamp(24px, 6vw, 36px);
  }

  h1 { 
    font-size: 2rem; 
  }

  h2 { 
    font-size: 1.6rem; 
    margin-top: clamp(20px, 5vw, 40px);
    margin-bottom: clamp(40px, 11vw, 60px);
  }

  .carousel { 
    height: 260px; 
    padding: 16px; 
    margin-top: clamp(30px, 6vw, 50px);
    margin-bottom: clamp(20px, 5vw, 30px); 
  }

  footer {
    margin-top: clamp(20px, 4vw, 40px);
  }

}

@media screen and (max-width: 600px) {

  .carousel {
    height: 220px;
    margin-bottom: 64px;
  }

  .slide h3 {
    font-size: 1.3rem;
  }
}

/* FOOTER */

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

.footer-top {
padding-top: 4px;
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;
text-align: center;
gap: 10px;
line-height: 2.2vh;
}

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

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

.copyright{
  font-size: 0.9rem;
  opacity: 0.85;
}

/*Responsive footer*/

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

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

.footer-bottom {
font-size: 1.2rem;
}
}
/* ===========================
   MASQUER MENU DESKTOP
   =========================== */

@media screen and (max-width: 996px) {
  header nav.menu {
    display: none !important;
  }

  header {
    padding: 0;
  }
}

/* ===========================
   TAB BAR MOBILE / TABLETTE
   =========================== */

.tabbar {
  display: none;
}

@media screen and (max-width: 996px) {

  main {
    padding-bottom: 100px; /* hauteur tab bar + marge confort ne pas mettre */
  }

  .tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);
    box-shadow: 0 -4px 20px rgba(11,18,32,0.06);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(11,18,32,0.06);
    z-index: 3000;
  }

 .tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--subtext);
  padding: 6px 4px;
  border-radius: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.75rem;
}

  .tab-icon {
    display: flex;
    justify-content: center;
  }

  .tab-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }

  /* Texte caché par défaut */
  .tab-label {
    display: block;
    margin-top: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
  }

  /* ÉTAT ACTIF */
  .tab-item.active {
    background: var(--primary);
    color: #fff;
    transform: scale(0.95);
    box-shadow: 0 6px 18px rgba(243,91,4,0.25);
  }
}