/* =======================
   VARIABLES GLOBALES
   ======================= */
:root{
  --bg: #0b0f12;
  --text: #e6eef8;
  --muted: #94a3b8;
  --accent: #addf15;       /* Couleur principale */
  --radius: 16px;
  --maxw: 1100px;
  --glass: rgba(255,255,255,0.04);
  --burger-color: #addf15;
}

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

body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  padding: 32px;
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: var(--maxw);
}

/* =======================
   HEADER
   ======================= */
header {
  display: flex;
  flex-direction: column;      /* pour empiler desktop + mobile si besoin */
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 12px;        /* espace avant la ligne */
  margin-bottom: 20px;         /* espace avec le reste de la page */
}

/* Desktop top part */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;             /* permet l’adaptation sur mobile */
}

/* Mobile nav déjà géré par ton CSS */
nav.mobile {
  margin-top: 12px;
}

/* Optionnel : ajuster la ligne si menu burger ouvert */
@media(max-width:600px) {
  header {
    padding-bottom: 8px;       /* moins d’espace sur mobile si tu veux */
  }
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* === HEADER BRAND (Logo + Texte) === */
.brand {
  display: flex;           /* Logo + texte sur une seule ligne */
  align-items: center;     /* Alignement vertical centré */
  gap: 12px;               /* Espace entre logo et texte */
  flex-wrap: nowrap;       /* Empêche le texte de passer sous le logo */
}

/* === LOGO SVG === */
.logo {
  display: block;
  width: 44px;             /* Taille fixe du logo */
  height: 44px;
  border-radius: 50%;      /* Logo rond */
  overflow: hidden;        /* Cache tout ce qui dépasse */
  flex-shrink: 0;          /* Empêche le logo de se réduire si manque d’espace */
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;     /* Le SVG reste proportionnel */
  display: block;
}

/* === TEXTE À CÔTÉ DU LOGO === */
.brand-text {
  display: flex;
  flex-direction: column;  /* "One-LUX" au-dessus, "Éclairage..." en dessous */
  justify-content: center; /* Centré verticalement avec le logo */
  white-space: nowrap;     /* Empêche le retour à la ligne sous le logo */
}

/* =======================
   NAVIGATION
   ======================= */
/* Desktop */
nav.desktop {
  display: flex;
  gap: 14px;
}

nav.desktop a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
}

nav.desktop a.active,
nav.desktop a:hover {
  color: #fff;
  background: var(--glass);
}

nav.desktop a.cta {
  background: var(--accent);
  color: #000;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
}

nav.desktop a.cta:hover {
  transform: translateY(-2px);
}

/* Mobile */
nav.mobile {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  background: rgba(0,0,0,0.3);
  padding: 12px;
  border-radius: 12px;
  width: 100%;
}

nav.mobile a {
  color: var(--text);
  text-decoration: none;
  padding: 8px;
  border-radius: 10px;
  background: none;
}

nav.mobile a.cta {
  background: var(--accent);
  color: #000;
  padding: 10px 14px;
  font-weight: 600;
}

/* Burger */
.burger {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--burger-color);
  cursor: pointer;
}

/* =======================
   HERO (INDEX)
   ======================= */
body.index .hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 40px;
}

body.index .hero img {
  width: 100%;
  max-height: 250px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.06);
}

body.index .hero h1 {
  margin-bottom: 16px;
}

body.index .hero .cta {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 18px;
  background: var(--accent);
  color: #000;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s;
}

body.index .hero .cta:hover {
  transform: translateY(-2px);
}

/* =======================
   GRID CARDS (INDEX)
   ======================= */
body.index .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

body.index .card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 16px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.index .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

body.index .card h3 {
  margin-bottom: 8px;
}

body.index .card p {
  color: var(--muted);
  margin-bottom: 12px;
}

body.index .card a {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: 8px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}

body.index .card a:hover {
  transform: translateY(-2px);
}

/* =======================
   APPLICATIONS PAGE
   ======================= */
body.apps h1, body.apps h2, body.apps p {
  margin-bottom: 16px;
  line-height: 1.6;
  text-align: left;
  color: var(--text);
}

body.apps h1 { font-size: 32px; }
body.apps h2 { font-size: 22px; }

body.apps .section {
  background: rgba(255,255,255,0.02);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-direction: row;
}

body.apps .section img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}

body.apps .text-content { flex: 1; }

/* =======================
   FOOTER (COMMUN)
   ======================= */
footer {
  display: flex;                
  justify-content: space-between; 
  align-items: center;
  flex-wrap: wrap;              
  margin-top: 40px;
  padding: 12px 24px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

footer > div:first-child {
  flex: 1;
  text-align: left;
}

footer > div:last-child {
  flex: 1;
  text-align: right;
}

/* Mobile : empilement */
@media(max-width:600px) {
  footer {
    flex-direction: column;
    text-align: center;
  }
  footer > div:first-child,
  footer > div:last-child {
    flex: none;
    text-align: center;
    margin: 4px 0;
  }
}

/* =======================
   RESPONSIVE
   ======================= */
@media(max-width:800px){
  body.index .hero {
    grid-template-columns: 1fr;
  }
  body.apps .section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  body.apps .section img {
    margin-bottom: 12px;
  }
}

@media(max-width:600px){
  body {
    padding: 16px;
  }
  nav.desktop { display: none; }
  nav.mobile { display: none; }
  nav.mobile.open { display: flex !important; }
  .burger { display: block; }

  body.index .hero img {
    max-height: 200px;
  }

  body.apps .section img {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
  }
}







/* =========================================================
   APPLICATIONS - mise en page images comme Services
========================================================= */
.apps .section {
  background: rgba(255,255,255,0.02);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-direction: row;
}

.apps .section img {
  width: 200px;
  height: 150px;           /* Desktop : format fixe */
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}

.apps .section .text-content { flex: 1; }

/* Tablette : ratio 4/3 */
@media(max-width:800px){
  .apps .section {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .apps .section img {
    width: 100%;
    aspect-ratio: 4/3;
    height: auto;
    object-fit: cover;
    object-position: center;
    margin-bottom: 12px;
  }
}

/* Mobile : ratio 16/9 */
@media(max-width:600px){
  .apps .section img {
    aspect-ratio: 16/9;
  }
}







/* Texte d’introduction de la page Services / Applications */
.apps > .card-text {
  color: #ffffff !important; /* force la couleur */
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Texte de la page Services / Applications */
.section .text-content p {
  color: var(--muted) !important; /* force la couleur comme définie dans root */
  line-height: 1.6;
  margin-bottom: 16px;
}





/* === Grille Produits === */
.grid-produits {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.produit {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.produit:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.produit img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 12px;
}
.produit h2 {
  font-size: 16px;
  margin: 8px 0;
  text-align:left;
  color:#e6eef8;
}
.produit p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
  text-align:left;
  line-height:1.5;
}
.produit a {
  display:block;
  text-align:center;
  color: var(--accent);
  font-weight:600;
  text-decoration:none;
}
.produit a:hover { text-decoration:underline; }

/* === Responsive === */
@media(max-width:1200px){ .grid-produits { grid-template-columns: repeat(4, 1fr); } }
@media(max-width:1000px){ .grid-produits { grid-template-columns: repeat(3, 1fr); } }
@media(max-width:700px){ .grid-produits { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:500px){
  .grid-produits { grid-template-columns: 1fr; }
  .produit img { width:100%; height:auto; aspect-ratio:auto; }
}

/* === Burger menu mobile === */
.burger { display:none; cursor:pointer; font-size:24px; }
@media(max-width:600px){
  body{padding:16px;}
  nav{display:none; flex-direction:column; width:100%; margin-top:12px;}
  nav.active{display:flex;}
  .burger{display:block;}
}

/* === Footer Produits === */
footer.produits {
  background: rgba(255,255,255,0.02);
  padding:24px;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,0.06);
  text-align:center;
}
footer.produits div{ margin-bottom:8px; }
footer.produits div:last-child{ margin-top:12px; font-size:14px; color:var(--muted); }

/* === Card-text Produits === */
.card-text { color:#e6eef8; margin-bottom:16px; line-height:1.6; }




