/* ========================================
   108 ST-O — Style Global
   Couleurs: 
   - Navbar:  #4a4a4a
   - Hero:    #2e2e2e
   - Accent:  #006040 (vert logo)
   - Orange:  #ff8c00
   - Texte:   #ffffff
   ======================================== */

/* === VARIABLES === */
:root {
  --color-navbar:   #4a4a4a;
  --color-hero:     #222222;
  --color-bg:       #2a2a2a;
  --color-accent:   #006040;
  --color-accent2:  #009647;
  --color-orange:   #ff8c00;
  --color-text:     #ffffff;
  --color-muted:    #aaaaaa;
  --color-border:   #555555;
  --font-main:      "Segoe UI", Arial, Helvetica, sans-serif;
}

/* === RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(180deg, #2a2a2a, #1f1f1f);
  color: var(--color-text);
  font-family: var(--font-main);
  min-height: 100vh;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover { opacity: 0.8; }

img { max-width: 100%; height: auto; }

/* === NAVBAR === */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(74,74,74,0.85);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--color-accent);
}

.navbar-logo img {
  height: 62px;
  width: auto;
  position: relative;
  top: 4px; /* positive = move down, negative = move up */
}

.navbar-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.navbar-links a {
 
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--color-orange);
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--color-accent2);
  border-bottom-color: var(--color-accent);
  opacity: 1;
}

.navbar-lang {
  font-size: 16px;
  color: var(--color-orange);
  font-weight: 500;
  border: 1px solid var(--color-border);
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.2s;
}

.navbar-lang:hover {
  color: var(--color-accent2);
  border-color: var(--color-orange);
  opacity: 1;
}

/* === HAMBURGER MOBILE === */
.navbar-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.navbar-toggle-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  
  color: var(--color-orange);
  margin-top: 4px;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-orange);
  border-radius: 2px;
  transition: all 0.3s;
}

/* === HERO === */
.hero {
  background: radial-gradient(circle at top, #444444, #222222);
  padding: 2rem 2rem 2rem 2rem;
  min-height: 25rem;
  text-align: center;
  position: relative;
  border-bottom: 3px solid var(--color-accent);
}

.hero-logo {
  width: 280px;
  margin-bottom: 0.25rem;
}

.hero-tag {
  font-size: 17px;
  letter-spacing: 1px;
  color: var(--color-accent2);
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: bold;
}

.hero-subtag {
  font-size: 15px;        /* plus petit que hero-tag */
  letter-spacing: 2px;
  color: var(--color-accent2);  /* gris au lieu de vert */
  margin-bottom: 2rem;
  font-weight: 600;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.hero p {
    font-size: 0.95rem;
  
  color: var(--color-muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === RESPONSIVE MOBILE (Écrans de moins de 768px) === */
@media (max-width: 768px) {
  .hero {
    /* Un peu moins de padding pour maximiser l'espace sur les petits écrans */
    padding: 2rem 1.25rem 3rem 1.25rem;
    min-height: auto; /* Évite de forcer une hauteur fixe inutile sur mobile */
  }

  .hero-logo {
    /* Le logo s'adapte à la largeur de l'écran sans jamais dépasser 220px */
    width: 100%;
    max-width: 220px;
    margin-bottom: 0.5rem;
  }

  .hero-tag {
    font-size: 14px; /* Réduit pour éviter que ça passe sur 2 lignes */
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
  }

  .hero-subtag {
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
  }

  .hero h1 {
    font-size: 1rem; /* Réduction cruciale pour le titre sur mobile */
    line-height: 1.3;
    margin-bottom: 1.25rem;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding: 0 5px; /* Évite que le texte colle trop aux bords de l'écran */
  }

  /* Ajustement des boutons pour qu'ils soient empilés proprement sur mobile */
  .hero .btn {
    display: block;
    width: 100%;
    max-width: 280px; /* Évite que les boutons soient exagérément larges */
    margin: 0.25rem auto !important; /* Aligne au centre et gère l'espacement vertical */
  }
}

/* === BOUTONS === */
.btn {
  transition: all 0.2s ease;
  display: inline-block;
  padding: 12px 28px;
  font-size: 14px;
  letter-spacing: 0.5px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
}

.btn:hover { opacity: 0.85;
  transform: translateY(-2px); }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text);
}

.btn-secondary {
  background: transparent;
  color: var(--color-muted);
  border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
  opacity: 1;
}

.btn-orange {
  background: var(--color-orange);
  color: var(--color-text);
}

/* === SECTIONS === */
.section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: 2.5rem;
}

.section-divider {
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  margin-bottom: 2rem;
}

/* === CARDS === */
.cards {
   
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  background: #444444;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.card:hover { border-color: var(--color-accent);
transform: translateY(-4px);

 }

.card-icon {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.card p {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.6;
}

/* === FOOTER === */
.footer {
  background: var(--color-navbar);
  border-top: 2px solid var(--color-accent);
  padding: 2rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 13px;
}

.footer a {
  color: var(--color-muted);
}

.footer a:hover {
  color: var(--color-text);
  opacity: 1;
}

/* === FORMULAIRES === */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: #444444;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea { min-height: 120px; resize: vertical; }

/* === RESPONSIVE === */
@media (max-width: 768px) {

  /* REDUCTION DU LOGO SUR MOBILE */
  .navbar-logo img {
    height: 40px;      /* Réduit la hauteur sur mobile (au lieu de 62px) */
    top: 4px;          /* Ajuste le positionnement vertical pour mobile si nécessaire */
  }

  /* Navbar mobile */
  .navbar { padding: 0 1rem; }

  /* ALIGNEMENT ET CENTRAGE DU BOUTON MENU */
  .navbar-toggle {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* Force le bouton à se centrer dans la navbar */
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .navbar-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--color-navbar);
    padding: 1rem 2rem;
    gap: 1rem;
    border-bottom: 2px solid var(--color-accent);
  }

  .navbar-links.open { display: flex; }

  /* Hero mobile */
  .hero { padding: 3rem 1.5rem; }
  .hero h1 { font-size: 1.8rem; }

  /* FORCE LA TAILLE ET L'ESPACE DES BOUTONS SUR MOBILE */
  .btn {
    display: block !important;
    width: 260px !important;            /* Force les deux boutons à avoir exactement la même largeur */
    max-width: 100% !important;
    margin: 0 auto 15px auto !important; /* Centre les boutons et ajoute l'espace d'un quart de bouton dessous */
    text-align: center;
  }

  /* Retire l'espace sous le tout dernier bouton */
  .btn:last-child {
    margin-bottom: 0 !important;
  }

  /* Cards mobile */
  .cards { grid-template-columns: 1fr; }

  /* Section mobile */
  .section { padding: 2.5rem 1.5rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.2rem; }
}

/* === GRILLE 2 COLONNES === */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .grid-2col {
    grid-template-columns: 1fr;
  }
}