/* MILLAN AUTOMATION — feuille de style principale */

:root {
  --bleu-fonce: #0f2a43;
  --bleu: #1274b8;
  --bleu-clair: #2e9fd8;
  --orange: #f39c12;
  --gris-fond: #f4f7fa;
  --texte: #24313d;
  --texte-doux: #5a6b7a;
  --blanc: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--texte);
  line-height: 1.65;
  background: var(--blanc);
}

img { max-width: 100%; display: block; }

.conteneur {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* ---------- En-tête ---------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blanc);
  box-shadow: 0 2px 12px rgba(15, 42, 67, 0.08);
}

.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo img { height: 88px; width: auto; }

.logo-texte {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--bleu-fonce);
  letter-spacing: 0.02em;
}

.logo-texte span { color: var(--bleu-clair); }

.nav { display: flex; gap: 1.6rem; align-items: center; }

.nav a {
  text-decoration: none;
  color: var(--texte);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav a:hover, .nav a.actif {
  color: var(--bleu);
  border-bottom-color: var(--bleu-clair);
}

.nav .bouton { border-bottom: none; }

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--bleu-fonce);
  cursor: pointer;
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-block;
  background: var(--bleu);
  color: var(--blanc) !important;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}

.bouton:hover { background: var(--bleu-clair); transform: translateY(-1px); }

.bouton-contour {
  background: transparent;
  border: 2px solid var(--blanc);
}

.bouton-contour:hover { background: rgba(255, 255, 255, 0.15); }

/* ---------- Héros ---------- */
.heros {
  background: linear-gradient(135deg, var(--bleu-fonce) 0%, #16436b 60%, var(--bleu) 100%);
  color: var(--blanc);
  padding: 5.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.heros::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(46, 159, 216, 0.25), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(46, 159, 216, 0.18), transparent 40%);
  pointer-events: none;
}

.heros .conteneur { position: relative; z-index: 1; }

.heros h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.2;
  max-width: 720px;
}

.heros h1 span { color: var(--bleu-clair); }

.heros p {
  margin: 1.2rem 0 2rem;
  font-size: 1.15rem;
  max-width: 640px;
  color: #d7e5f0;
}

.heros .actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }

.section-grise { background: var(--gris-fond); }

.section-titre {
  text-align: center;
  margin-bottom: 2.8rem;
}

.section-titre h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--bleu-fonce);
}

.section-titre .trait {
  width: 60px;
  height: 4px;
  background: var(--bleu-clair);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

.section-titre p { color: var(--texte-doux); margin-top: 0.8rem; }

/* ---------- Cartes services ---------- */
.grille-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.carte {
  background: var(--blanc);
  border-radius: 10px;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 4px 18px rgba(15, 42, 67, 0.07);
  border-top: 4px solid var(--bleu-clair);
  transition: transform 0.2s, box-shadow 0.2s;
}

.carte:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(15, 42, 67, 0.13);
}

.carte .icone {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.carte h3 {
  color: var(--bleu-fonce);
  font-size: 1.12rem;
  margin-bottom: 0.6rem;
}

.carte p { color: var(--texte-doux); font-size: 0.95rem; }

.carte a {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--bleu);
  font-weight: 600;
  text-decoration: none;
}

.carte a:hover { text-decoration: underline; }

/* ---------- Bloc valeurs ---------- */
.grille-valeurs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.valeur { text-align: center; padding: 1rem; }

.valeur .icone { font-size: 2.2rem; margin-bottom: 0.6rem; }

.valeur h3 { color: var(--bleu-fonce); font-size: 1.05rem; margin-bottom: 0.4rem; }

.valeur p { color: var(--texte-doux); font-size: 0.93rem; }

/* ---------- Bandeau Siemens ---------- */
.bandeau {
  background: var(--bleu-fonce);
  color: var(--blanc);
  padding: 3rem 0;
}

.bandeau .conteneur {
  display: block;
}

.bandeau h3 { color: var(--bleu-clair); margin-bottom: 0.5rem; }

.bandeau p { color: #c6d6e4; font-size: 0.97rem; }

/* Carrousel du bandeau (rotation automatique) */
.bandeau-carrousel { position: relative; }

.bandeau-slide {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  animation: apparition 0.7s ease;
}

.bandeau-slide.visible { display: grid; }

@keyframes apparition { from { opacity: 0; } to { opacity: 1; } }

.bandeau-points {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 1.8rem;
}

.bandeau-points button {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.bandeau-points button.actif { background: var(--bleu-clair); transform: scale(1.25); }

.bloc-video { text-decoration: none; display: block; border-radius: 8px; padding: 0.5rem; transition: background 0.2s; }

a.bloc-video:hover { background: rgba(255, 255, 255, 0.06); }

.bloc-video em { color: var(--orange); font-style: normal; font-weight: 600; }

.bloc-video img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

a.bloc-video img { transition: transform 0.3s; }
a.bloc-video:hover img { transform: scale(1.02); }

/* ---------- Pages internes ---------- */
.bandeau-page {
  background: linear-gradient(135deg, var(--bleu-fonce), var(--bleu));
  color: var(--blanc);
  padding: 3.2rem 0;
}

.bandeau-page h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }

.contenu-page { padding: 3.5rem 0; }

.contenu-page h2 {
  color: var(--bleu-fonce);
  margin: 2.2rem 0 0.8rem;
  font-size: 1.4rem;
}

.contenu-page h2:first-child { margin-top: 0; }

.contenu-page p { margin-bottom: 1rem; max-width: 820px; }

.contenu-page ul { margin: 0 0 1rem 1.4rem; max-width: 820px; }

.contenu-page li { margin-bottom: 0.5rem; }

/* Grande photo de l'atelier (page Qui sommes-nous) */
.photo-atelier {
  margin: 0 0 2.2rem;
  max-width: 900px;
}

.photo-atelier img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(15, 42, 67, 0.16);
  display: block;
}

.photo-atelier figcaption {
  margin-top: 0.7rem;
  color: var(--texte-doux);
  font-size: 0.92rem;
  font-style: italic;
  text-align: center;
}

/* Photos d'illustration des pages internes */
.illustrations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.6rem;
  max-width: 820px;
}

.illustrations img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(15, 42, 67, 0.12);
}

.encart {
  background: var(--gris-fond);
  border-left: 4px solid var(--bleu-clair);
  padding: 1.2rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.8rem 0;
  max-width: 820px;
}

/* ---------- Contact ---------- */
.grille-contact {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
}

.info-contact .bloc {
  margin-bottom: 1.6rem;
}

.info-contact h3 { color: var(--bleu-fonce); margin-bottom: 0.3rem; }

.info-contact p { color: var(--texte-doux); }

.formulaire {
  background: var(--blanc);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 18px rgba(15, 42, 67, 0.08);
}

.formulaire label {
  display: block;
  font-weight: 600;
  margin: 1rem 0 0.3rem;
  color: var(--bleu-fonce);
  font-size: 0.95rem;
}

.formulaire label:first-child { margin-top: 0; }

.formulaire input,
.formulaire textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid #ccd6e0;
  border-radius: 6px;
  font: inherit;
  transition: border-color 0.2s;
}

.formulaire input:focus,
.formulaire textarea:focus {
  outline: none;
  border-color: var(--bleu-clair);
}

.formulaire button {
  margin-top: 1.4rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

/* ---------- Pied de page ---------- */
.pied {
  background: var(--bleu-fonce);
  color: #b9c9d8;
  padding: 3rem 0 1.5rem;
}

.pied .colonnes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.pied h4 { color: var(--blanc); margin-bottom: 0.7rem; }

.pied a { color: #b9c9d8; text-decoration: none; }

.pied a:hover { color: var(--bleu-clair); }

.pied ul { list-style: none; }

.pied li { margin-bottom: 0.4rem; }

.pied .mentions {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- Bandeau partenaires défilant ---------- */
.partenaires {
  background: var(--blanc);
  padding: 2.5rem 0;
  overflow: hidden;
  border-top: 1px solid #e6edf3;
}

.partenaires .titre {
  text-align: center;
  color: var(--texte-doux);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.8rem;
}

.ruban {
  display: flex;
  width: max-content;
  animation: defiler 40s linear infinite;
}

.partenaires:hover .ruban { animation-play-state: paused; }

.ruban img {
  height: 70px;
  width: auto;
  margin: 0 2.2rem;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.3s, opacity 0.3s;
}

.ruban img:hover {
  filter: grayscale(0);
  opacity: 1;
}

@keyframes defiler {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ruban { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* ---------- Carrousel ---------- */
.carrousel {
  position: relative;
  overflow: hidden;
  background: var(--bleu-fonce);
}

.carrousel .diapo {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  background-size: cover;
  background-position: center;
}

.carrousel .diapo.visible { opacity: 1; }

.carrousel .voile {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(15, 42, 67, 0.55), rgba(15, 42, 67, 0.75));
  padding: 6rem 0 5.5rem;
  color: var(--blanc);
}

.carrousel h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.2;
  max-width: 760px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.carrousel .legende {
  margin: 1.2rem 0 2rem;
  font-size: 1.2rem;
  max-width: 640px;
  color: #e8f1f8;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  min-height: 3.2em;
}

.carrousel .actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.carrousel .fleche {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--blanc);
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.carrousel .fleche:hover { background: rgba(255, 255, 255, 0.35); }

.carrousel .fleche.gauche { left: 14px; }
.carrousel .fleche.droite { right: 14px; }

.carrousel .points {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.carrousel .points button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carrousel .points button.actif {
  background: var(--blanc);
  transform: scale(1.25);
}

/* ---------- Sous-menu déroulant ---------- */
.menu-deroulant { position: relative; }

.menu-deroulant > a::after { content: " ▾"; font-size: 0.75em; }

.sous-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blanc);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 42, 67, 0.16);
  padding: 0.5rem 0;
  min-width: 250px;
  display: none;
  z-index: 50;
}

.menu-deroulant:hover .sous-menu,
.menu-deroulant.ouvert .sous-menu { display: block; }

.sous-menu a {
  display: block;
  padding: 0.55rem 1.2rem;
  border-bottom: none;
  font-weight: 500;
}

.sous-menu a:hover { background: var(--gris-fond); }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .burger { display: block; }

  .logo img { height: 68px; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanc);
    flex-direction: column;
    padding: 1rem 4%;
    gap: 0.9rem;
    box-shadow: 0 8px 16px rgba(15, 42, 67, 0.12);
  }

  .nav.ouvert { display: flex; }

  .sous-menu {
    position: static;
    transform: none;
    box-shadow: none;
    padding-left: 1rem;
  }

  .carrousel .fleche { display: none; }

  .grille-contact { grid-template-columns: 1fr; }
}

/* ---------- Mise en forme des textes éditables (site public) ---------- */
.txt-petit { font-size: 0.85em; }
.txt-grand { font-size: 1.25em; }
mark { background: #fff3a3; padding: 0 0.15em; border-radius: 2px; }

/* ---------- Éditeur de textes (menu admin) ---------- */
details.page-textes > summary {
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bleu-fonce);
  margin: 2rem 0 1rem;
  list-style: none;
}
details.page-textes > summary::before { content: "▸ "; color: var(--bleu-clair); }
details.page-textes[open] > summary::before { content: "▾ "; }

.groupe {
  background: var(--blanc);
  border-radius: 10px;
  padding: 1.2rem 1.5rem 1.4rem;
  box-shadow: 0 4px 18px rgba(15, 42, 67, 0.07);
  margin-bottom: 1.2rem;
  max-width: 900px;
}
.groupe h3 { color: var(--bleu-fonce); margin-bottom: 0.6rem; }

.champ { margin-top: 1rem; }
.champ-entete { display: flex; justify-content: space-between; align-items: baseline; }
.champ-libelle { font-weight: 600; color: var(--bleu-fonce); font-size: 0.93rem; }
.lien-origine { font-size: 0.8rem; color: var(--texte-doux); text-decoration: none; }
.lien-origine:hover { color: var(--bleu); text-decoration: underline; }
.badge-modif { font-size: 0.75rem; background: #e8f4fc; color: var(--bleu); padding: 0.1rem 0.55rem; border-radius: 10px; font-weight: 600; margin-left: 0.4rem; }

.barre-outils { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.4rem 0 0.3rem; }
.barre-outils button {
  border: 1px solid #ccd6e0; background: #f4f7fa; border-radius: 4px;
  padding: 0.2rem 0.6rem; cursor: pointer; font-size: 0.85rem; line-height: 1.4;
}
.barre-outils button:hover { background: #e6edf3; }

.editeur {
  min-height: 2.6rem; padding: 0.6rem 0.8rem; margin-top: 0.3rem;
  border: 1px solid #ccd6e0; border-radius: 6px; background: var(--blanc);
  line-height: 1.55; font: inherit;
}
.editeur:focus { outline: none; border-color: var(--bleu-clair); box-shadow: 0 0 0 3px rgba(46, 159, 216, 0.15); }
.editeur-titre { font-weight: 700; font-size: 1.05rem; }
.editeur ul { margin: 0.2rem 0 0.2rem 1.4rem; }

/* ---------- Menu sur deux lignes quand on est connecté (espace client / admin) ---------- */
.nav-deux-lignes { flex-direction: column; align-items: flex-end; gap: 0.35rem; }
.nav-public { display: flex; gap: 1.1rem; align-items: center; }
.nav-public a { font-size: 0.85rem; font-weight: 500; color: var(--texte-doux); }
.nav-espace { display: flex; gap: 1.6rem; align-items: center; }

@media (max-width: 800px) {
  .nav-deux-lignes { align-items: flex-start; gap: 0.9rem; }
  .nav-public, .nav-espace { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .nav-public { padding-bottom: 0.6rem; border-bottom: 1px solid #e6edf3; width: 100%; }
}


/* ---------- Catalogue produits ---------- */
.sous-bandeau { margin-top: 0.6rem; color: #d7e5f0; font-size: 1.05rem; max-width: 760px; }
.fil-ariane { font-size: 0.85rem; color: #b9c9d8; margin-bottom: 0.4rem; }
.fil-ariane a { color: #d7e5f0; text-decoration: none; }
.famille-titre { color: var(--bleu-fonce); margin: 2.6rem 0 1.2rem; font-size: 1.45rem; display: flex; align-items: center; gap: 0.7rem; }
.famille-titre:first-of-type { margin-top: 1rem; }
.famille-nb { background: var(--gris-fond); color: var(--texte-doux); font-size: 0.8rem; padding: 0.15rem 0.6rem; border-radius: 10px; font-weight: 600; }
.catalogue-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.produit-carte {
  display: flex; flex-direction: column; background: var(--blanc); border-radius: 10px; overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 42, 67, 0.08); text-decoration: none; color: var(--texte);
  border-top: 4px solid var(--bleu-clair); transition: transform 0.2s, box-shadow 0.2s;
}
.produit-carte:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(15, 42, 67, 0.14); }
.produit-photo { background: #f7f9fb; height: 190px; display: flex; align-items: center; justify-content: center; padding: 0.8rem; }
.produit-photo img { max-height: 100%; width: auto; object-fit: contain; }
.produit-corps { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.produit-corps h3 { color: var(--bleu-fonce); font-size: 1.15rem; margin-bottom: 0.15rem; }
.produit-sous-titre { color: var(--texte-doux); font-size: 0.9rem; margin-bottom: 0.7rem; }
.produit-specs { list-style: none; margin: 0 0 0.8rem; padding: 0; font-size: 0.85rem; }
.produit-specs li { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.25rem 0; border-bottom: 1px dashed #e6edf3; }
.produit-specs span { color: var(--texte-doux); }
.produit-prix { margin-top: auto; padding-top: 0.6rem; font-size: 1.15rem; color: var(--bleu-fonce); }
.produit-prix small { font-size: 0.75rem; color: var(--texte-doux); }
.produit-prix em { color: var(--texte-doux); font-size: 0.95rem; }
.prix-verrou { color: var(--texte-doux); font-size: 0.9rem; }
.produit-lien { color: var(--bleu); font-weight: 600; font-size: 0.9rem; margin-top: 0.5rem; }
.prix-info p { margin: 0; }

/* Fiche produit */
.produit-grille { display: grid; grid-template-columns: minmax(260px, 1fr) 1.3fr; gap: 2.5rem; align-items: start; }
.produit-visuel { background: #f7f9fb; border-radius: 12px; padding: 1.5rem; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.produit-visuel img { max-height: 460px; width: auto; object-fit: contain; }
.produit-detail h2 { margin-top: 1.8rem; }
.produit-achat { background: var(--gris-fond); border-radius: 10px; padding: 1.2rem 1.4rem; margin-bottom: 1rem; }
.produit-prix-grand { font-size: 1.7rem; color: var(--bleu-fonce); margin-bottom: 0.6rem; }
.produit-prix-grand small { font-size: 0.85rem; color: var(--texte-doux); }
.produit-prix-grand em { font-size: 1.15rem; color: var(--texte-doux); }
.produit-panier { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; }
.produit-panier label { font-weight: 600; color: var(--bleu-fonce); }
.produit-panier input { width: 80px; padding: 0.55rem; border: 1px solid #ccd6e0; border-radius: 6px; font: inherit; }
.specs { width: 100%; border-collapse: collapse; font-size: 0.93rem; max-width: 100%; }
.specs th, .specs td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid #e6edf3; vertical-align: top; }
.specs th { color: var(--texte-doux); font-weight: 600; width: 45%; }
.bouton-secondaire { background: var(--bleu-fonce); }
.produit-fiche-lien { margin-top: 1.4rem; }
.fiche-apercu { display: block; max-width: 1000px; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 24px rgba(15, 42, 67, 0.14); }
.fiche-apercu img { width: 100%; display: block; }
.fiche-legende { color: var(--texte-doux); font-size: 0.85rem; margin-top: 0.5rem; }

@media (max-width: 800px) {
  .produit-grille { grid-template-columns: 1fr; }
}


/* ---------- Onglets des gammes (page Nos produits) ---------- */
.onglets-gammes { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.8rem; }
.onglets-gammes a {
  padding: 0.45rem 1.1rem; border-radius: 20px; border: 1px solid #d5dee7;
  text-decoration: none; color: var(--texte); font-weight: 600; font-size: 0.92rem; transition: background 0.2s, color 0.2s;
}
.onglets-gammes a:hover { background: var(--gris-fond); }
.onglets-gammes a.actif { background: var(--bleu); color: var(--blanc); border-color: var(--bleu); }


/* ---------- Encart de présentation d'une gamme ---------- */
.intro-gamme {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start;
  background: var(--gris-fond); border-radius: 12px; padding: 1.6rem 1.8rem; margin-bottom: 2.4rem;
}
.intro-gamme h2 { margin: 0 0 0.8rem; font-size: 1.3rem; color: var(--bleu-fonce); }
.intro-gamme p { max-width: none; margin-bottom: 0.8rem; }
.intro-gamme p:last-child { margin-bottom: 0; }
.atouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.atouts li { background: var(--blanc); border-left: 3px solid var(--bleu-clair); border-radius: 0 8px 8px 0; padding: 0.55rem 0.9rem; font-size: 0.92rem; }
.atouts li strong { color: var(--bleu-fonce); }
@media (max-width: 800px) { .intro-gamme { grid-template-columns: 1fr; } }


/* ---------- Cartes produits de la page d'accueil ---------- */
.grille-produits .carte { text-decoration: none; color: var(--texte); display: flex; flex-direction: column; }
.carte-photo { width: 100%; height: 170px; object-fit: contain; background: #f7f9fb; border-radius: 8px; margin-bottom: 0.9rem; }
.carte-lien { display: inline-block; margin-top: auto; padding-top: 0.9rem; color: var(--bleu); font-weight: 600; }
.grille-produits .carte:hover .carte-lien { text-decoration: underline; }


/* ---------- Vignette météo Weathercloud superposée sur la photo de l'atelier ---------- */
.photo-atelier { position: relative; }
.meteo-sticker { position: absolute; top: 14px; right: 14px; display: block; }
.meteo-sticker img { width: 240px; height: auto; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); transition: transform 0.2s; }
.meteo-sticker:hover img { transform: translateY(-3px); }
@media (max-width: 800px) {
  .meteo-sticker { top: 8px; right: 8px; }
  .meteo-sticker img { width: 170px; }
}


/* ---------- Options configurables sur la fiche produit ---------- */
.produit-option { flex-basis: 100%; border: 1px solid #d5e0ea; border-radius: 8px; padding: 0.5rem 0.9rem 0.7rem; margin: 0; background: var(--blanc); }
.produit-option legend { font-weight: 600; color: var(--bleu-fonce); padding: 0 0.3rem; }
.produit-option label { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0.3rem 1.2rem 0.2rem 0; font-weight: 500; color: var(--texte); cursor: pointer; }
.produit-option input { width: auto; padding: 0; accent-color: var(--bleu); }
.produit-option .supp { color: var(--texte-doux); font-size: 0.88rem; }
.produit-options-info { color: var(--texte-doux); font-size: 0.93rem; margin-bottom: 0.8rem; }
.note-admin { flex-basis: 100%; margin: 0; padding: 0.6rem 0.9rem; background: #fff7e6; border-left: 4px solid var(--orange); border-radius: 6px; font-size: 0.92rem; color: var(--texte); }
.note-admin a { color: var(--bleu); font-weight: 600; }
.produit-sous-titre { flex-basis: 100%; margin: 0.4rem 0 -0.2rem; font-weight: 700; color: var(--bleu-fonce); font-size: 0.95rem; }
.produit-sous-titre small { font-weight: 400; color: var(--texte-doux); }
.produit-choix-info { margin-bottom: 1rem; }
.info-port { margin: 0.8rem 0 0; color: var(--texte-doux); font-size: 0.9rem; }
.produit-ref { flex-basis: 100%; margin: 0.4rem 0 0; font-size: 0.95rem; color: var(--texte-doux); }
.produit-ref strong { color: var(--bleu-fonce); font-family: Consolas, monospace; letter-spacing: 0.02em; }
.produit-option label:has(.opt-picto) { align-items: center; padding: 0.25rem 0.5rem 0.25rem 0.3rem; border: 1px solid #e2e9f0; border-radius: 8px; background: #fbfdff; }
.produit-option label:has(.opt-picto):has(input:checked) { border-color: var(--bleu); background: #eef6fc; }
.opt-picto { width: 40px; height: 40px; flex: 0 0 auto; }
.produit-option.avec-schema { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; align-items: center; }
.produit-option.avec-schema .groupe-schema { flex: 0 1 460px; max-width: 100%; height: auto; border-radius: 6px; border: 1px solid #e2e9f0; background: #fff; }
.produit-option.avec-schema .choix { flex: 1 1 220px; display: flex; flex-direction: column; }
.produit-option.avec-schema .choix label { margin: 0.15rem 0; }
