/* ARCA – Panneaux électriques industriels · V2
   Logo et couleurs de la marque, mise en page revue : lignes fines, angles nets. */

:root {
  --noir: #000000;
  --nuit: #0b0d11;          /* sections foncées */
  --bleu: #174cd3;          /* bleu du logo */
  --bleu-fonce: #0f3aa6;
  --bleu-clair: #99b6fe;    /* bleu pâle du logo */
  --blanc: #ffffff;
  --gris-fond: #f3f4f6;
  --encre: #0b0d11;
  --gris: #5b616b;
  --ligne: #dfe2e7;
  --ligne-fonce: rgba(255,255,255,.14);

  --police: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --cadre: 1240px;
  --gout: clamp(20px, 4vw, 48px);
  --entete: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 69px; }
body {
  margin: 0; font-family: var(--police); font-size: 1.0625rem; line-height: 1.65;
  color: var(--encre); background: var(--blanc); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.05; font-stretch: 112%; letter-spacing: -.015em; }
p { margin: 0; }
ul, dl, dd { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--bleu-clair); outline-offset: 3px; }

.cadre { width: 100%; max-width: var(--cadre); margin: 0 auto; padding: 0 var(--gout); }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.evitement { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--bleu); color: var(--blanc); padding: .6rem 1rem; }
.evitement:focus { top: 1rem; }

/* Boutons et liens */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 54px; padding: 0 1.6rem; border: 1px solid transparent; cursor: pointer;
  font: 600 1rem/1 var(--police); font-stretch: 108%; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.bouton .ico { transition: transform .2s; }
.bouton:hover .ico { transform: translateX(4px); }
.bouton--bleu { background: var(--bleu); color: var(--blanc); }
.bouton--bleu:hover { background: var(--bleu-fonce); }
.bouton--ligne { border-color: rgba(255,255,255,.45); color: var(--blanc); }
.bouton--ligne:hover { border-color: var(--blanc); background: rgba(255,255,255,.08); }

.lien {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-stretch: 108%;
  text-decoration: none; color: var(--bleu); border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.lien .ico { transition: transform .2s; }
.lien:hover .ico { transform: translateX(4px); }
.lien--clair { color: var(--bleu-clair); font-size: .95rem; margin-top: .6rem; }

/* Pastilles : carré bleu net, coin bleu pâle repris du logo */
.pastille {
  position: relative; display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; background: var(--bleu); color: var(--blanc);
}
.pastille::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 14px; height: 14px;
  background: var(--bleu-clair); clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.pastille .ico { width: 26px; height: 26px; stroke-width: 1.5; }
.pastille--petite { width: 44px; height: 44px; }
.pastille--petite::after { width: 11px; height: 11px; }
.pastille--petite .ico { width: 22px; height: 22px; }

/* Entête : transparent sur le hero, noir au défilement */
.entete { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--blanc); transition: background-color .3s, height .3s, border-color .3s; border-bottom: 1px solid var(--ligne-fonce); }
.entete.est-defile { background: var(--noir); border-bottom-color: transparent; }
.entete__in { display: flex; align-items: center; gap: 2.5rem; height: var(--entete); transition: height .3s; }
.entete.est-defile .entete__in { height: 68px; }
.logo img { height: 28px; width: auto; }
.nav { display: flex; gap: 2.25rem; margin-left: auto; }
.nav a { position: relative; text-decoration: none; font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.78); padding: .4rem 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bleu-clair); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover, .nav a.actif { color: var(--blanc); }
.nav a:hover::after, .nav a.actif::after { transform: scaleX(1); }
.entete__tel {
  display: inline-flex; align-items: center; gap: .55rem; height: 44px; padding: 0 1.1rem;
  border: 1px solid rgba(255,255,255,.35); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: background-color .2s, border-color .2s;
}
.entete__tel:hover { background: var(--bleu); border-color: var(--bleu); }

/* Menu mobile */
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.35); background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--blanc); transition: transform .25s, top .25s; }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
.menu-mobile { background: var(--noir); border-top: 1px solid var(--ligne-fonce); }
.menu-mobile .cadre { display: flex; flex-direction: column; padding-top: .5rem; padding-bottom: 1.25rem; }
.menu-mobile a { padding: 1rem 0; border-bottom: 1px solid var(--ligne-fonce); text-decoration: none; font-size: 1.25rem; font-weight: 600; font-stretch: 110%; }
.menu-mobile a:last-child { border-bottom: 0; }
.entete.menu-ouvert { background: var(--noir); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; color: var(--blanc); background: var(--noir); isolation: isolate; overflow: hidden; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.7) 42%, rgba(0,0,0,.2) 80%),
    linear-gradient(0deg, rgba(0,0,0,.65) 0%, transparent 40%);
}
.hero__in { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--entete) + 56px); padding-bottom: 72px; }
.hero__sur { font-size: .95rem; font-weight: 500; color: var(--bleu-clair); display: flex; align-items: center; gap: .75rem; }
.hero__sur::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.hero h1 { margin-top: 1.4rem; max-width: 100%; font-size: clamp(2.7rem, 6vw, 5.2rem); font-weight: 600; line-height: .98; letter-spacing: -.025em; }
.hero__intro { margin-top: 1.6rem; max-width: 46ch; font-size: 1.15rem; color: rgba(255,255,255,.78); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

.specs { border-top: 1px solid var(--ligne-fonce); background: rgba(0,0,0,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.specs__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.specs li { padding: 1.4rem 1.5rem; border-left: 1px solid var(--ligne-fonce); }
.specs li:first-child { border-left: 0; padding-left: 0; }
.specs span { display: block; font-size: .8rem; color: rgba(255,255,255,.55); }
.specs strong { display: block; margin-top: .2rem; font-weight: 600; font-stretch: 108%; font-size: 1.02rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero__photo { animation: recul 1.6s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes recul { from { transform: scale(1.06); } to { transform: none; } }

/* Sections */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section h2, .contact h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.tete { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: end; padding-bottom: clamp(40px, 6vw, 64px); }
.tete p { color: var(--gris); max-width: 58ch; }

/* Services : grille à filets */
.grille { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ligne); border-left: 1px solid var(--ligne); }
.carte {
  position: relative; padding: 2.25rem 2rem 2.5rem;
  border-right: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne);
  transition: background-color .25s;
}
.carte::before { content: ""; position: absolute; left: -1px; top: -1px; width: calc(100% + 2px); height: 2px; background: var(--bleu); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.carte:hover { background: var(--gris-fond); }
.carte:hover::before { transform: scaleX(1); }
.carte h3 { margin-top: 2.25rem; font-size: 1.3rem; line-height: 1.15; }
.carte p { margin-top: .6rem; font-size: .98rem; color: var(--gris); max-width: 34ch; }
.services__pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.services__pied p { color: var(--gris); }

/* Galerie */
.galerie { display: grid; grid-template-columns: 1.4fr .8fr 1.2fr; gap: 6px; background: var(--blanc); }
.galerie img { width: 100%; height: clamp(220px, 28vw, 420px); object-fit: cover; }

/* À propos */
.apropos { background: var(--nuit); color: var(--blanc); }
.apropos__haut { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(36px, 7vw, 112px); align-items: start; }
.apropos__label { font-size: .95rem !important; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--bleu-clair); display: flex; align-items: center; gap: .75rem; }
.apropos__label::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.apropos__label--mission { margin-top: clamp(48px, 6vw, 72px); }
.apropos__vision { margin-top: 1.25rem; font-size: clamp(1.55rem, 2.7vw, 2.35rem); font-weight: 500; font-stretch: 108%; line-height: 1.22; letter-spacing: -.01em; max-width: 26ch; }
.apropos__mission { margin-top: 1.25rem; font-size: 1.12rem; color: rgba(255,255,255,.75); max-width: 50ch; }
.apropos__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; }
.apropos__photo figcaption {
    padding-top: .9rem;
    font-size: .80rem;
    color: rgba(255, 255, 255, .6);
    text-align: center;
}

/* Éléments graphiques de la marque : points, anneau bleu, arcs concentriques */
.hero, .section, .contact__infos { position: relative; }
.services, .apropos, .licences, .contact__infos { overflow: hidden; }
.cadre, .contact__bloc { position: relative; z-index: 1; }
.deco { position: absolute; pointer-events: none; z-index: 0; }
.deco--points {
  width: 132px; height: 176px;
  background: radial-gradient(circle, rgba(255,255,255,.7) 2.5px, transparent 3px) 0 0 / 22px 22px;
}
.deco--points-gris { background-image: radial-gradient(circle, #c3c9d2 2.5px, transparent 3px); }
.deco--hero { top: calc(var(--entete) + 40px); right: var(--gout); z-index: -1; }
.deco--services { top: 56px; right: 0; width: 110px; height: 132px; }
.deco--contact { left: 0; bottom: 40px; width: 154px; height: 88px; opacity: .55; }
.deco--anneau {
  width: 420px; height: 420px; border-radius: 50%; border: 64px solid var(--bleu);
  right: -210px; bottom: -210px;
}
.deco--arcs { width: 400px; height: 400px; left: 0; bottom: 0; }
.deco--arcs circle { fill: none; stroke: rgba(255,255,255,.4); stroke-width: 2; }

.engagements__titre { margin-top: clamp(80px, 10vw, 140px); font-size: 1.5rem; }
.engagements { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 1.75rem; border-top: 1px solid var(--ligne-fonce); }
.engagements li { padding: 2rem 1.5rem 0 0; }
.engagements li + li { padding-left: 1.5rem; border-left: 1px solid var(--ligne-fonce); }
.engagements h4 { margin-top: 1.5rem; font-size: 1.08rem; line-height: 1.25; }
.engagements p { margin-top: .5rem; font-size: .94rem; color: rgba(255,255,255,.62); line-height: 1.6; }

/* Licences */
.licences { background: var(--bleu); color: var(--blanc); overflow: hidden; }
.licences__in { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 0 clamp(36px, 7vw, 112px); align-items: start; }
.licences__texte p { margin-top: 1.4rem; max-width: 44ch; font-size: 1.1rem; color: rgba(255,255,255,.85); }
.normes { grid-column: 1; margin-top: 2.75rem; border-top: 1px solid rgba(255,255,255,.3); }
.normes li { display: grid; grid-template-columns: 150px 1fr; gap: .15rem 2rem; align-items: baseline; padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,.3); }
.normes__sigle { grid-row: span 2; font-size: 2.6rem; font-weight: 700; font-stretch: 125%; line-height: 1; color: var(--bleu-clair); }
.normes strong { font-size: 1.35rem; font-weight: 600; font-stretch: 108%; }
.normes__txt { font-size: .92rem; color: rgba(255,255,255,.7); }
.licences__photo { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.licences__photo img { width: 100%; max-width: 540px; margin-left: auto; filter: drop-shadow(0 30px 50px rgba(0,10,50,.45)); }

/* Contact : moitié noire, moitié claire */
.contact { display: grid; grid-template-columns: 1fr 1fr; }
.contact__infos { background: var(--noir); color: var(--blanc); }
.contact__form { background: var(--gris-fond); }
.contact__bloc { max-width: calc(var(--cadre) / 2); padding: clamp(72px, 10vw, 140px) var(--gout); }
.contact__infos .contact__bloc { margin-left: auto; padding-right: clamp(32px, 6vw, 88px); }
.contact__form .contact__bloc { padding-left: clamp(32px, 6vw, 88px); }
.contact__infos > .contact__bloc > p { margin-top: 1.25rem; color: rgba(255,255,255,.7); max-width: 40ch; }
.coord { margin-top: 2.5rem; border-top: 1px solid var(--ligne-fonce); }
.coord > div { padding: 1.25rem 0; border-bottom: 1px solid var(--ligne-fonce); display: grid; grid-template-columns: 110px 1fr; gap: 1rem; }
.coord dt { font-size: .88rem; color: rgba(255,255,255,.55); padding-top: .15rem; }
.coord dd a { text-decoration: none; }
.coord dd a:not(.lien):hover { color: var(--bleu-clair); }
.coord__gros { font-size: 1.5rem; font-weight: 600; font-stretch: 108%; }
.coord address { color: rgba(255,255,255,.85); }

.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; margin-bottom: 2rem; }
.champ--large { grid-column: 1 / -1; }
.champ label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .4rem; }
.facultatif { font-weight: 400; color: var(--gris); }
.champ input, .champ textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--encre); background: var(--blanc);
  border: 1px solid var(--ligne); border-radius: 0; padding: .85rem 1rem; transition: border-color .2s, box-shadow .2s;
}
.champ textarea { resize: vertical; min-height: 150px; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--bleu); box-shadow: inset 0 -2px 0 var(--bleu); }
.champ--err input, .champ--err textarea { border-color: #c62828; }
.champ__err { display: block; color: #b3261e; font-size: .88rem; margin-top: .3rem; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__form .bouton { width: 100%; }

.avis { padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.avis--ok { background: #e3f1e6; color: #1d5a2b; border-left: 3px solid #2f8a45; }
.avis--erreur { background: #fbe9e7; color: #8a1f17; border-left: 3px solid #c62828; }
.avis a { color: inherit; font-weight: 600; }

/* Pied */
.pied { background: var(--noir); color: rgba(255,255,255,.5); font-size: .88rem; border-top: 1px solid var(--ligne-fonce); }
.pied__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.pied img { height: 20px; width: auto; }

/* Responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .entete__tel { margin-left: auto; }
  .entete__in { gap: .75rem; }
  .menu-btn { display: block; }
  .deco--services { display: none; }
  .specs__in { grid-template-columns: 1fr 1fr; }
  .specs li:nth-child(3) { border-left: 0; padding-left: 0; }
  .specs li:nth-child(n+3) { border-top: 1px solid var(--ligne-fonce); }
  .grille { grid-template-columns: 1fr 1fr; }
  .engagements { grid-template-columns: repeat(3, 1fr); }
  .engagements li:nth-child(4) { padding-left: 0; border-left: 0; }
  .engagements li:nth-child(n+4) { margin-top: 2rem; }
}
@media (max-width: 860px) {
  .tete, .apropos__haut, .licences__in, .contact { grid-template-columns: 1fr; }
  .apropos__photo { max-width: 420px; }
  .deco--anneau { width: 260px; height: 260px; border-width: 40px; right: -130px; bottom: -130px; }
  .deco--arcs { width: 260px; height: 260px; }
  .deco--hero { display: none; }
  .licences__photo { grid-column: 1; grid-row: auto; margin-top: 3rem; }
  .licences__photo img { margin: 0 auto; max-width: 380px; }
  .galerie { grid-template-columns: 1fr 1fr; }
  .galerie img:first-child { grid-column: 1 / -1; }
  .contact__bloc, .contact__infos .contact__bloc, .contact__form .contact__bloc { max-width: none; margin: 0; padding: 72px var(--gout); }
}
@media (max-width: 600px) {
  :root { --entete: 68px; }
  .logo img { height: 24px; }
  .entete__tel span { display: none; }
  .entete__tel { width: 44px; padding: 0; justify-content: center; }
  .hero h1 { font-size: 2.5rem; }
  .hero__actions .bouton { flex: 1 1 100%; }
  .specs li { padding: 1rem .75rem 1rem 0; }
  .specs li:nth-child(even) { padding-left: .9rem; }
  .specs strong { font-size: .92rem; }
  .grille, .engagements, .champs { grid-template-columns: 1fr; }
  .carte { padding: 1.75rem 1.4rem 2rem; }
  .engagements li, .engagements li + li { padding: 1.75rem 0 0; border-left: 0; margin-top: 0 !important; }
  .engagements li + li { border-top: 1px solid var(--ligne-fonce); margin-top: 1.75rem !important; }
  .galerie img { height: 200px; }
  .coord > div { grid-template-columns: 1fr; gap: .2rem; }
  .normes li { grid-template-columns: 96px 1fr; gap: .15rem 1.25rem; }
  .normes__sigle { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
