/* Sud Électricité : feuille de style unique du site (refonte du 28/10/2026).
   Polices du système : aucun appel à un service externe. */

:root {
  --bleu: #024ea3;
  --bleu-fonce: #0a3a75;
  --bleu-nuit: #061d3a;
  --orange: #ffa645;
  --orange-texte: #a35400;          /* orange lisible sur fond clair */
  --texte: #1c2733;
  --texte-doux: #536171;
  --fond-doux: #f2f6fb;
  --bord: #dce4ee;
  --rayon: 16px;
  --ombre: 0 12px 32px rgba(6, 29, 58, .08);
  --largeur: 1180px;
  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--police); font-size: 1.0625rem; line-height: 1.65; color: var(--texte); background: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--bleu); text-underline-offset: .18em; }
a:hover { color: var(--bleu-fonce); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.18; color: var(--bleu-nuit); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); letter-spacing: -.015em; }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
strong { color: var(--bleu-nuit); }

.conteneur { width: min(100% - 2.5rem, var(--largeur)); margin-inline: auto; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; border-radius: 8px; background: var(--bleu-nuit); color: #fff; }
.evitement:focus { top: 1rem; color: #fff; }
.icone { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Boutons ---- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.45rem;
  border: 2px solid transparent; border-radius: 999px; font: inherit; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: transform .15s, background-color .15s, box-shadow .15s, color .15s;
}
.bouton .icone { width: 20px; height: 20px; }
.bouton--accent { background: var(--orange); color: var(--bleu-nuit); }
.bouton--accent:hover { background: #ffb869; color: var(--bleu-nuit); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255, 166, 69, .35); }
.bouton--plein { background: var(--bleu); color: #fff; }
.bouton--plein:hover { background: var(--bleu-fonce); color: #fff; transform: translateY(-1px); }
.bouton--contour { border-color: rgba(255, 255, 255, .6); color: #fff; }
.bouton--contour:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---- En-tête ---- */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--bord); }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.entete__logo img { width: 118px; }
.entete__menu { display: none; }
.navigation { display: flex; align-items: center; gap: 1.25rem; }
.navigation ul { display: flex; gap: .2rem; margin: 0; padding: 0; list-style: none; }
.navigation li a {
  display: block; padding: .55rem .8rem; border-radius: 8px; color: var(--bleu-nuit); font-weight: 600;
  text-decoration: none; transition: background-color .15s, color .15s;
}
.navigation li a:hover { background: var(--fond-doux); color: var(--bleu); }
.navigation li a[aria-current="page"] { color: var(--bleu); box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.entete__tel { padding: .7rem 1.15rem; white-space: nowrap; }

/* ---- Grand visuel de l'accueil et bandeaux des pages ---- */
.heros, .bandeau { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--bleu-nuit); }
.heros__image, .bandeau__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.heros::before, .bandeau::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(6, 29, 58, .94) 0%, rgba(6, 29, 58, .8) 38%, rgba(2, 78, 163, .35) 100%);
}
.heros { display: grid; align-items: center; min-height: min(80vh, 700px); padding: 5rem 0; }
.heros__image { object-position: 62% 30%; }
.heros h1, .bandeau h1 { color: #fff; }
.heros h1 { max-width: 15ch; }
.surtitre { display: inline-block; margin-bottom: .9rem; color: var(--orange-texte); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.heros .surtitre, .bandeau .surtitre, .appel .surtitre { color: var(--orange); }
.heros__texte { max-width: 50ch; font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .92); }
.heros__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.bandeau { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); }
.bandeau h1 { margin-bottom: .35em; }
.bandeau p { max-width: 60ch; margin: 0; font-size: 1.15rem; color: rgba(255, 255, 255, .9); }

/* ---- Bande des atouts ---- */
.atouts { background: var(--bleu-nuit); color: rgba(255, 255, 255, .85); border-top: 1px solid rgba(255, 255, 255, .08); }
.atouts ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem 2rem; margin: 0 auto; padding: 1.6rem 0; list-style: none; }
.atouts li { display: flex; align-items: center; gap: .9rem; font-size: .95rem; line-height: 1.4; }
.atouts .icone { width: 30px; height: 30px; color: var(--orange); }
.atouts strong { display: block; color: #fff; font-size: 1.05rem; }

/* ---- Sections ---- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--doux { background: var(--fond-doux); }
.section__entete { max-width: 62ch; margin-bottom: 2.5rem; }
.section__entete p { color: var(--texte-doux); font-size: 1.1rem; }
.section__suite { margin: 2rem 0 0; }
.deux-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1.5rem; }
.grille--deux { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

.carte { padding: 1.9rem; border: 1px solid var(--bord); border-radius: var(--rayon); background: #fff; box-shadow: var(--ombre); }
.carte > :last-child { margin-bottom: 0; }
.carte__icone { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 1.1rem; border-radius: 14px; background: rgba(2, 78, 163, .08); color: var(--bleu); }
.carte--accent { border-top: 4px solid var(--orange); }
.carte--sombre { border: 0; background: var(--bleu-nuit); color: rgba(255, 255, 255, .88); }
.carte--sombre h3, .carte--sombre strong { color: #fff; }

.liste { margin: 0 0 1em; padding: 0; list-style: none; }
.liste li { position: relative; margin-bottom: .55rem; padding-left: 1.55rem; }
.liste li::before { content: ""; position: absolute; left: .1rem; top: .62em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--orange); }
.liste--compacte li { margin-bottom: .35rem; }

.etiquettes { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.etiquettes li { padding: .4rem .95rem; border: 1px solid var(--bord); border-radius: 999px; background: #fff; color: var(--bleu-fonce); font-size: .92rem; font-weight: 600; }
.mention { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .95rem; border-radius: 999px; background: rgba(255, 166, 69, .18); color: var(--bleu-nuit); font-weight: 700; }

.photo { overflow: hidden; border-radius: var(--rayon); box-shadow: var(--ombre); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.label { display: flex; align-items: center; gap: 1.5rem; }
.label img { width: 72px; flex: none; }

/* ---- Galeries de photos ---- */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .8rem; margin: 0; padding: 0; list-style: none; }
.galerie a { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--bord); }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.galerie a:hover img { transform: scale(1.05); }
.galerie a::after {
  content: attr(data-legende); position: absolute; inset: auto 0 0 0; padding: 1.6rem .9rem .7rem; color: #fff; font-size: .9rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(6, 29, 58, .85)); opacity: 0; transition: opacity .25s;
}
.galerie a:hover::after, .galerie a:focus-visible::after { opacity: 1; }

.materiel { margin: 0; text-align: center; }
.materiel img { width: 100%; margin-bottom: .8rem; border-radius: 12px; }
.materiel figcaption { font-weight: 700; color: var(--bleu-nuit); }

/* ---- Visionneuse (créée par js/site.js) ---- */
.visionneuse { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; }
.visionneuse::backdrop { background: rgba(3, 12, 26, .93); }
.visionneuse figure { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; margin: 0; padding: 3.5rem 4.5rem; }
.visionneuse img { max-width: 100%; max-height: calc(100vh - 9rem); border-radius: 8px; }
.visionneuse figcaption { margin-top: .9rem; color: #fff; text-align: center; }
.visionneuse button {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer;
}
.visionneuse button:hover { background: rgba(255, 255, 255, .26); }
.visionneuse__fermer { top: 1rem; right: 1rem; }
.visionneuse__prec { top: 50%; left: 1rem; transform: translateY(-50%); }
.visionneuse__suiv { top: 50%; right: 1rem; transform: translateY(-50%); }

/* ---- Appel à l'action ---- */
.appel {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem;
  padding: clamp(2rem, 5vw, 3.25rem); border-radius: var(--rayon); color: rgba(255, 255, 255, .9);
  background: linear-gradient(120deg, var(--bleu) 0%, var(--bleu-fonce) 60%, var(--bleu-nuit) 100%);
}
.appel h2 { margin: 0 0 .25rem; color: #fff; }
.appel p { margin: 0; }
.appel__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---- Contact et formulaire ---- */
.coordonnees { margin: 0; }
.coordonnees div { position: relative; padding: 1rem 0 1rem 2.6rem; border-bottom: 1px solid var(--bord); }
.coordonnees div:last-child { border-bottom: 0; }
.coordonnees .icone { position: absolute; left: 0; top: 1.2rem; color: var(--bleu); }
.coordonnees dt { font-size: .85rem; font-weight: 700; color: var(--texte-doux); text-transform: uppercase; letter-spacing: .08em; }
.coordonnees dd { margin: 0; font-size: 1.1rem; }
.deux-colonnes--haut { align-items: stretch; }
.plan { overflow: hidden; min-height: 420px; border-radius: var(--rayon); box-shadow: var(--ombre); }
.plan iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

.carte--formulaire { max-width: 880px; margin-inline: auto; }
.formulaire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem 1.4rem; }
.champ { display: grid; gap: .4rem; }
.champ--large { grid-column: 1 / -1; }
.champ label { font-size: .95rem; font-weight: 600; color: var(--bleu-nuit); }
.champ input, .champ textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid #c5d1de; border-radius: 10px; background: #fff;
  font: inherit; color: var(--texte); transition: border-color .15s, box-shadow .15s;
}
.champ textarea { min-height: 170px; resize: vertical; }
.champ input:focus, .champ textarea:focus { border-color: var(--bleu); outline: none; box-shadow: 0 0 0 4px rgba(2, 78, 163, .15); }
.obligatoire { color: var(--orange-texte); }
.formulaire__pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; grid-column: 1 / -1; }
.formulaire__pied p { margin: 0; color: var(--texte-doux); font-size: .92rem; }

/* ---- Pied de page ---- */
.pied { padding: 3.75rem 0 1.5rem; background: var(--bleu-nuit); color: rgba(255, 255, 255, .78); font-size: .97rem; }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { color: var(--orange); }
.pied h2 { margin-bottom: .9rem; color: #fff; font-size: 1.05rem; letter-spacing: 0; }
.pied__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2.25rem; }
.pied ul { margin: 0; padding: 0; list-style: none; }
.pied li { margin-bottom: .45rem; }
.pied__marque p { max-width: 32ch; }
.pied__label { display: flex; align-items: center; gap: .9rem; margin-top: 1.1rem; font-size: .88rem; }
.pied__label img { width: 46px; }
.pied__bas {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; margin-top: 2.75rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .12); font-size: .86rem;
}

/* ---- Écrans moyens et petits ---- */
@media (max-width: 1020px) {
  .js .entete__menu {
    display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .9rem; border: 1px solid var(--bord); border-radius: 10px;
    background: #fff; color: var(--bleu-nuit); font: inherit; font-weight: 700; cursor: pointer;
  }
  .entete__menu-trait, .entete__menu-trait::before, .entete__menu-trait::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s; }
  .entete__menu-trait { position: relative; }
  .entete__menu-trait::before, .entete__menu-trait::after { content: ""; position: absolute; left: 0; }
  .entete__menu-trait::before { top: -6px; }
  .entete__menu-trait::after { top: 6px; }
  .entete__menu[aria-expanded="true"] .entete__menu-trait { background: transparent; }
  .entete__menu[aria-expanded="true"] .entete__menu-trait::before { transform: translateY(6px) rotate(45deg); }
  .entete__menu[aria-expanded="true"] .entete__menu-trait::after { transform: translateY(-6px) rotate(-45deg); }
  .entete__barre { flex-wrap: wrap; }
  .navigation { flex-direction: column; align-items: stretch; gap: 1rem; width: 100%; padding: 0 0 1.25rem; }
  .js .navigation { display: none; }
  .js .navigation--ouverte { display: flex; }
  .navigation ul { flex-direction: column; }
  .navigation li a { padding: .8rem .6rem; border-bottom: 1px solid var(--bord); border-radius: 0; }
  .navigation li a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--orange); padding-left: 1rem; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .heros { min-height: 0; padding: 4rem 0 3.5rem; }
  .heros__image { object-position: 70% 30%; }
  .heros__actions .bouton, .appel__actions .bouton { width: 100%; }
  .carte { padding: 1.5rem; }
  .label { flex-direction: column; align-items: flex-start; }
  .galerie { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .formulaire { grid-template-columns: 1fr; }
  .visionneuse figure { padding: 3.5rem .75rem; }
  .visionneuse__prec, .visionneuse__suiv { top: auto; bottom: 1rem; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
