/* =========================================================================
   style.css — Design-system DamElec Nord (.de-*) + pages
   Palette tirée du logo : indigo #312783 + rouge #C11718.
   ========================================================================= */

:root {
  /* Couleurs (logo) */
  --de-indigo:      #312783;
  --de-indigo-2:    #211660;
  --de-indigo-3:    #191046;
  --de-red:         #C11718;
  --de-cream:       #FAF8F4;
  --de-ink:         #1B1930;
  --de-body:        #57536b;
  --de-muted:       #6C6883;
  --de-soft:        #8b8799;
  --de-lilac:       #b7e1f7;   /* fond indigo très clair */
  --de-line:        #EDE9E1;   /* filet crème */
  --de-line-2:      #E4DEF2;   /* filet lilas */
  --de-white:       #ffffff;

  /* Typo */
  --de-font-title: 'Bricolage Grotesque', system-ui, sans-serif;
  --de-font-sans:  'Public Sans', system-ui, sans-serif;
  --de-font-mono:  'IBM Plex Mono', ui-monospace, monospace;

  /* Layout */
  --de-container: 1260px;
  --de-radius:    22px;
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--de-cream);
  color: var(--de-ink);
  font-family: var(--de-font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--de-indigo); color: #fff; }
h1,h2,h3,h4 { font-family: var(--de-font-title); margin: 0; }

/* ---------------------------------------------------------- primitives */
.de-container { max-width: var(--de-container); margin: 0 auto; padding-inline: 30px; }
.de-section   { padding-block: 58px; }

.de-eyebrow {
  font-family: var(--de-font-mono);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--de-red);
}
.de-title {
  font-weight: 800; line-height: 1.06; letter-spacing: -.022em;
  font-size: clamp(32px, 3.8vw, 48px); margin: 13px 0 0;
}
.de-title--sm { font-size: clamp(28px, 3.2vw, 40px); }
.de-lead { font-size: 17px; line-height: 1.6; color: var(--de-body); margin: 17px 0 0; }

/* Boutons */
.de-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1;
  padding: 17px 26px; border-radius: 13px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, filter .18s ease, background .18s ease;
}
.de-btn svg { width: 18px; height: 18px; }
.de-btn--red   { background: var(--de-red); color: #fff; box-shadow: 0 14px 30px rgba(193,23,24,.28); }
.de-btn--red:hover   { filter: brightness(1.07); transform: translateY(-2px); }
.de-btn--indigo { background: var(--de-indigo); color: #fff; box-shadow: 0 14px 30px rgba(49,39,131,.26); }
.de-btn--indigo:hover { filter: brightness(1.10); transform: translateY(-2px); }
.de-btn--white { background: #fff; color: var(--de-indigo); box-shadow: 0 14px 30px rgba(10,6,35,.28); }
.de-btn--white:hover { filter: brightness(.97); transform: translateY(-2px); }
.de-btn--ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.30); color: #fff; }
.de-btn--ghost:hover { background: rgba(255,255,255,.16); }
.de-btn--outline { background: #fff; border-color: var(--de-line-2); color: var(--de-indigo); }
.de-btn--outline:hover { background: var(--de-lilac); }
.de-btn--lg { font-size: 16.5px; padding: 18px 30px; border-radius: 14px; }

/* Icône carrée (pastille) */
.de-ico {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; border-radius: 13px; background: var(--de-lilac); color: var(--de-indigo);
}
.de-ico svg { width: 24px; height: 24px; }

/* Placeholder image (en attendant les vraies photos du client) */
.de-ph {
  width: 100%; height: 100%; min-height: 200px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 20px;
  background: linear-gradient(150deg, #efeaff, #e3ddf6);
  color: var(--de-indigo);
}
.de-ph svg { width: 40px; height: 40px; opacity: .55; }
.de-ph span { font-family: var(--de-font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #7d76a8; max-width: 220px; }
.de-hero__img .de-ph, .de-energy__img .de-ph { background: rgba(255,255,255,.06); color: #cfc9ec; }
.de-hero__img .de-ph span, .de-energy__img .de-ph span { color: #b7b0dd; }

/* ============================================================== HEADER */
.de-header {
  /*position: sticky;*/ 
  top: 0; 
  z-index: 60;
  backdrop-filter: blur(12px);
  background: rgba(250,248,244,.72);
  border-bottom: 1px solid rgba(234,230,222,.8);
  transition: box-shadow .3s ease, background .3s ease;
}
.de-header.is-scrolled { box-shadow: 0 10px 34px rgba(30,20,80,.10); background: rgba(250,248,244,.94); }
.de-header__inner {
  max-width: var(--de-container); margin: 0 auto; padding: 24px 30px;
  display: flex; align-items: center; gap: 16px 26px;
}
.de-logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.de-logo img { height: 100px; width: auto; }
.de-logo__sep { width: 1px; height: 30px; background: var(--de-line-2); }
.de-logo__tag {
  font-family: var(--de-font-mono); font-size: 10.5px; letter-spacing: .16em;
  color: var(--de-soft); text-transform: uppercase; line-height: 1.5;
}
.de-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.de-nav__link {
  font-weight: 600; font-size: 15.5px; color: var(--de-ink);
  padding: 11px 16px; border-radius: 10px; display: inline-flex; align-items: center; gap: 7px;
}
.de-nav__link:hover { background: var(--de-lilac); }
.de-nav__link svg { width: 16px; height: 16px; color: var(--de-soft); }

.de-dd { position: relative; }
.de-dd__panel {
  position: absolute; top: calc(100% + 12px); left: 0; width: 540px;
  background: #fff; border: 1px solid var(--de-line); border-radius: 20px;
  box-shadow: 0 28px 66px rgba(30,20,80,.18); padding: 16px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.de-dd:hover .de-dd__panel, .de-dd.is-open .de-dd__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.de-dd__pillar {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 13px; padding: 14px;
  border-radius: 14px; background: linear-gradient(150deg, var(--de-indigo), var(--de-indigo-2)); margin-bottom: 5px;
}
.de-dd__pillar .de-ico { background: rgba(255,255,255,.16); color: #fff; width: 44px; height: 44px; }
.de-dd__pillar b { display: block; font-weight: 700; font-size: 15px; color: #fff; }
.de-dd__pillar span { display: block; font-size: 12.5px; color: #c9c3ec; }
.de-dd__item { display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: 12px; font-weight: 600; font-size: 14px; }
.de-dd__item:hover { background: var(--de-lilac); }
.de-dd__item svg { width: 19px; height: 19px; color: var(--de-indigo); flex-shrink: 0; }

.de-header__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.de-phone { display: flex; align-items: center; gap: 11px; }
.de-phone .de-ico { width: 44px; height: 44px; }
.de-phone__k { font-size: 11px; color: var(--de-soft); font-weight: 600; }
.de-phone__v { font-size: 17px; font-weight: 800; font-family: var(--de-font-title); }
.de-burger { display: none; }

/* ================================================================ HERO */
.de-hero { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(140deg, var(--de-indigo) 0%, var(--de-indigo-2) 52%, var(--de-indigo-3) 100%); }
.de-hero__glow-a { position: absolute; top: -160px; right: 8%; width: 540px; height: 540px; border-radius: 50%;
  background: radial-gradient(circle, rgba(193,23,24,.34), transparent 66%); filter: blur(20px); }
.de-hero__glow-b { position: absolute; bottom: -180px; left: -120px; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.09), transparent 70%); }
.de-hero__inner { position: relative; max-width: var(--de-container); margin: 0 auto; padding: 66px 30px 80px;
  display: flex; gap: 58px; align-items: center; }
.de-hero__col { flex: 1.05; min-width: 400px; }
.de-hero__media { flex: 1; min-width: 340px; position: relative; }
.de-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--de-font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  padding: 9px 16px; border-radius: 100px; color: #d7d2f2;
}
.de-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--de-red); animation: dePulse 2.2s infinite; }
@keyframes dePulse { 0%{box-shadow:0 0 0 0 rgba(193,23,24,.5)} 70%{box-shadow:0 0 0 8px rgba(193,23,24,0)} 100%{box-shadow:0 0 0 0 rgba(193,23,24,0)} }
.de-hero h1 { font-weight: 800; font-size: clamp(42px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -.028em; margin: 26px 0 0; }
.de-hero h1 .mark { box-shadow: inset 0 -.14em 0 var(--de-red); padding-right: .05em; }
.de-hero__lead { font-size: 18px; line-height: 1.62; color: #d3cfe8; max-width: 540px; margin: 26px 0 0; }
.de-hero__cta { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 36px; }
.de-hero__checks { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 36px; }
.de-hero__checks span { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: #cdc8e6; }
.de-hero__checks svg { width: 18px; height: 18px; color: var(--de-red); stroke-width: 3; }
.de-hero__img { aspect-ratio: 4/5; border-radius: 28px; overflow: hidden; border: 1px solid rgba(255,255,255,.20);
  box-shadow: 0 40px 80px rgba(10,6,35,.45); }
.de-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.de-float {
  position: absolute; left: -24px; bottom: 40px; background: #fff; color: var(--de-ink);
  border-radius: 18px; padding: 17px 20px; box-shadow: 0 24px 50px rgba(10,6,35,.4);
  display: flex; align-items: center; gap: 14px; animation: deFloaty 6s ease-in-out infinite;
}
@keyframes deFloaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)} }
.de-float .de-ico { width: 48px; height: 48px; background: var(--de-indigo); color: #fff; display: flex;}
.de-float b { display: block; font-family: var(--de-font-title); font-weight: 800; font-size: 23px; line-height: 1; }
.de-float span { display: block; font-size: 12.5px; color: var(--de-muted); }
.de-hero__wave { height: 36px; background: var(--de-cream); border-radius: 36px 36px 0 0; margin-top: -2px; }

/* ========================================================= TRUST STRIP */
.de-trust { max-width: var(--de-container); margin: 0 auto; padding: 8px 30px 10px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.de-trust__item { display: flex; align-items: center; gap: 16px; background: #fff;
  border: 1px solid var(--de-line); border-radius: 18px; padding: 20px 22px; }
.de-trust__item .de-ico { width: 52px; height: 52px; }
.de-trust__item .de-ico svg { width: 27px; height: 27px; }
.de-trust__item strong { font-family: var(--de-font-title); font-size: 16.5px; }
.de-trust__item small { font-size: 13.5px; color: var(--de-muted); }

/* ============================================================ SERVICES */
.de-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.de-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(276px, 1fr)); gap: 18px; }
.de-card { background: #fff; border: 1px solid var(--de-line); border-radius: var(--de-radius);
  padding: 30px; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.de-card:hover { transform: translateY(-4px); border-color: #D9D1F0; box-shadow: 0 20px 44px rgba(30,20,80,.09); }
.de-card .de-ico { width: 66px; height: 66px; border-radius: 18px; }
.de-card .de-ico svg { width: 34px; height: 34px; }
.de-card h3 { font-weight: 700; font-size: 23px; margin: 22px 0 9px; }
.de-card p { font-size: 15px; line-height: 1.55; color: var(--de-body); margin: 0; flex: 1; }
.de-card__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: var(--de-red); margin-top: 20px; }
.de-card__more svg { width: 16px; height: 16px; }
.de-card--pillar { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(155deg, var(--de-indigo), var(--de-indigo-2)); border-color: transparent; }
.de-card--pillar .de-ico { background: rgba(255,255,255,.14); color: #fff; }
.de-card--pillar h3 { color: #fff; }
.de-card--pillar p { color: #cfc9ec; }
.de-card--pillar .de-card__more { color: #fff; }
.de-card__tag { position: absolute; top: 20px; right: 20px; font-family: var(--de-font-mono);
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #fff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); padding: 5px 11px; border-radius: 100px; }

/* ========================================================= WHY / SPLIT */
.de-split { display: flex; gap: 56px; align-items: center; flex-wrap: wrap; }
.de-split__col { flex: 1; min-width: 340px; }
.de-media { position: relative; }
.de-media__img { aspect-ratio: 5/4; border-radius: 26px; overflow: hidden; border: 1px solid var(--de-line-2); box-shadow: 0 30px 60px rgba(30,20,80,.10); }
.de-media__img img { width: 100%; height: 100%; object-fit: cover; }
.de-media__badge { position: absolute; right: -20px; bottom: -20px; background: var(--de-red); color: #fff;
  border-radius: 20px; padding: 22px 24px; box-shadow: 0 20px 44px rgba(193,23,24,.32); }
.de-media__badge b { display: block; font-family: var(--de-font-title); font-weight: 800; font-size: 33px; line-height: 1; }
.de-media__badge span { display: block; font-size: 13px; margin-top: 5px; opacity: .92; }
.de-feat { display: flex; flex-direction: column; gap: 18px; }
.de-feat__row { display: flex; gap: 16px; }
.de-feat__row .de-ico { width: 46px; height: 46px; }
.de-feat__row .de-ico svg { width: 23px; height: 23px; }
.de-feat__row strong { font-size: 17px; font-family: var(--de-font-title); }
.de-feat__row p { font-size: 15px; color: var(--de-body); line-height: 1.55; margin: 4px 0 0; }

/* ============================================================= PROCESS */
.de-process { background: #fff; border-block: 1px solid var(--de-line); }
.de-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(236px, 1fr)); gap: 18px; }
.de-step { background: var(--de-cream); border: 1px solid var(--de-line); border-radius: 20px; padding: 28px; }
.de-step__n { font-family: var(--de-font-title); font-weight: 800; font-size: 15px; color: var(--de-red); }
.de-step .de-ico { width: 54px; height: 54px; border-radius: 15px; background: var(--de-indigo); color: #fff; margin: 14px 0 18px; }
.de-step .de-ico svg { width: 26px; height: 26px; }
.de-step h3 { font-weight: 700; font-size: 19px; margin: 0 0 8px; }
.de-step p { font-size: 14.5px; line-height: 1.55; color: var(--de-body); margin: 0; }

/* ============================================================== ENERGY */
.de-energy { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--de-indigo), var(--de-indigo-2)); }
.de-energy__glow { position: absolute; top: -120px; right: 6%; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(193,23,24,.30), transparent 70%); }
.de-energy .de-ico { width: 56px; height: 56px; border-radius: 15px; background: rgba(255,255,255,.14); color: #fff; margin-bottom: 20px; }
.de-energy .de-ico svg { width: 28px; height: 28px; }
.de-energy h2 { font-weight: 800; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 15px; }
.de-energy p { font-size: 17px; line-height: 1.62; color: #d3cfe8; margin: 0; max-width: 600px; }
.de-energy__img { aspect-ratio: 4/3; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.2); }
.de-energy__img img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================ CONTACT */
.de-contact-card { display: flex; align-items: center; gap: 16px; background: #fff;
  border: 1px solid var(--de-line); border-radius: 16px; padding: 17px 20px; }
.de-contact-card .de-ico { width: 52px; height: 52px; border-radius: 14px; }
.de-contact-card--red .de-ico { background: var(--de-red); color: #fff; }
.de-contact-card__k { display: block; font-size: 12.5px; color: var(--de-soft); font-weight: 600; }
.de-contact-card__v { display: block; font-weight: 700; font-size: 16.5px; color: var(--de-ink); }
.de-contact-card__v--big { font-family: var(--de-font-title); font-weight: 800; font-size: 23px; }

.de-form { background: #fff; border: 1px solid var(--de-line); border-radius: 24px; padding: 32px; box-shadow: 0 28px 66px rgba(30,20,80,.08); }
.de-form h3 { font-weight: 700; font-size: 21px; margin: 0 0 5px; }
.de-form__sub { font-size: 13.5px; color: var(--de-soft); margin: 0 0 24px; }
.de-field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: #3d3a52; margin-bottom: 14px; }
.de-field input, .de-field select, .de-field textarea {
  font-family: inherit; font-size: 14.5px; padding: 14px 15px; border: 1px solid var(--de-line-2);
  border-radius: 12px; background: var(--de-cream); outline: none; color: var(--de-ink);
  transition: border-color .15s ease, background .15s ease;
}
.de-field input:focus, .de-field select:focus, .de-field textarea:focus { border-color: var(--de-indigo); background: #fff; }
.de-field textarea { resize: vertical; }
.de-form__row { display: flex; gap: 14px; flex-wrap: wrap; }
.de-form__row .de-field { flex: 1; min-width: 150px; }
.de-form__note { font-size: 12px; color: #a5a1b5; text-align: center; margin: 15px 0 0; }
.de-form button { width: 100%; justify-content: center; }
.de-req { color: var(--de-red); font-weight: 700; }
.de-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #3d3a52; margin-bottom: 20px; cursor: pointer; }
.de-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--de-indigo); flex-shrink: 0; cursor: pointer; }
.de-check a { color: var(--de-indigo); font-weight: 600; text-decoration: underline; }

/* =============================================================== FOOTER */
.de-footer { background: #17132b; color: #c8c4dc; }
.de-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; }
.de-footer img { height: 140px; width: auto; margin-bottom: 20px; }
.de-footer p { font-size: 14.5px; line-height: 1.62; color: #9a95b8; }
.de-footer h4 { font-family: var(--de-font-title); font-weight: 700; font-size: 13.5px; color: #fff;
  text-transform: uppercase; letter-spacing: .08em; margin: 0 0 17px; }
.de-footer__links { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.de-footer__links a { color: #9a95b8; }
.de-footer__links a:hover { color: #fff; }
.de-footer__contact { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.de-footer__contact a, .de-footer__contact span { display: flex; align-items: center; gap: 10px; color: #c8c4dc; }
.de-footer__contact svg { width: 17px; height: 17px; color: var(--de-red); }
.de-footer__bar { border-top: 1px solid rgba(255,255,255,.10); margin-top: 46px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #7d789a; }

/* ============================================================ RESPONSIVE */
@media (max-width: 992px) {
  .de-footer__grid { grid-template-columns: 1fr 1fr; }
  .de-hero__inner { flex-direction: column; }
  .de-hero__col, .de-hero__media { min-width: 0; width: 100%; }
}
@media (max-width: 860px) {
  .de-nav, .de-phone__txt { display: none; }
  .de-burger { display: inline-flex; padding: 12px; }
  .de-section { padding-block: 56px; }
  .de-header__actions .de-btn--red { display: none; }

  /* Nav mobile ouverte */
  .de-nav.is-mobile-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--de-line);
    box-shadow: 0 24px 44px rgba(30,20,80,.12); padding: 14px 18px 20px;
  }
  .de-nav.is-mobile-open .de-dd, .de-nav.is-mobile-open .de-dd__panel {
    position: static; width: auto; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0; grid-template-columns: 1fr; margin-top: 6px;
  }
  .de-nav.is-mobile-open .de-nav__link { justify-content: space-between; }
}
@media (max-width: 560px) {
  .de-container, .de-header__inner, .de-hero__inner, .de-trust { padding-inline: 18px; }
  .de-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .de-hero__cta { flex-direction: column; }
  .de-hero__cta .de-btn { width: 100%; justify-content: center; }
  .de-float { left: 8px; }
}
