/* Eco Capital — système de design
   Motif : les deux disques du logo qui se chevauchent.
   Couleurs vives tirées du logo, une seule couleur chaude pour l'action principale. */

:root {
  --roi: #2340b0;
  --roi-fonce: #1a3192;
  --azur: #1fa2f2;
  --azur-clair: #7cc8f8;
  --encre: #0b1b4f;
  --encre-2: #33416e;
  --brume: #eaf3fe;
  --brume-2: #f5f9ff;
  --blanc: #ffffff;
  --soleil: #ffb31a;
  --soleil-fonce: #e89a00;
  --trait: #d4e3f7;

  --degrade: linear-gradient(120deg, var(--roi) 0%, #2a5fd0 45%, var(--azur) 100%);

  --police: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --t-2xl: clamp(2rem, 1.4rem + 2.2vw, 2.875rem);
  --t-3xl: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;

  --ombre: 0 18px 40px -18px rgba(11, 27, 79, .35);
  --ease: cubic-bezier(.22, .8, .25, 1);

  --bs-body-font-family: var(--police);
  --bs-body-color: var(--encre);
  --bs-link-color-rgb: 35, 64, 176;
  --bs-link-hover-color-rgb: 26, 49, 146;
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--police);
  font-size: var(--t-md);
  line-height: 1.6;
  color: var(--encre);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .titre {
  font-family: var(--police);
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
  color: var(--encre);
}
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); margin-bottom: .75rem; }
h3 { font-size: var(--t-lg); font-stretch: 108%; font-weight: 750; line-height: 1.25; }
p { max-width: 68ch; }
.chapo { font-size: var(--t-lg); color: var(--encre-2); line-height: 1.55; max-width: 60ch; }
.petit { font-size: var(--t-sm); color: var(--encre-2); }

a { text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--azur); outline-offset: 3px; border-radius: 6px; }

.lien-evitement {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--encre); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm);
}
.lien-evitement:focus { top: 1rem; }

/* Boutons */
.btn { font-weight: 650; border-radius: 999px; padding: .8rem 1.5rem; font-size: var(--t-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-action { background: var(--soleil); color: var(--encre); border: 0; }
.btn-action:hover, .btn-action:focus-visible { background: var(--soleil-fonce); color: var(--encre);
  box-shadow: 0 10px 24px -10px rgba(232, 154, 0, .8); transform: translateY(-2px); }
.btn-roi { background: var(--roi); color: #fff; border: 0; }
.btn-roi:hover, .btn-roi:focus-visible { background: var(--roi-fonce); color: #fff; transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(35, 64, 176, .8); }
.btn-contour { border: 2px solid currentColor; color: var(--roi); background: transparent; }
.btn-contour:hover, .btn-contour:focus-visible { background: var(--roi); border-color: var(--roi); color: #fff; }
.sur-sombre .btn-contour { color: #fff; }
.sur-sombre .btn-contour:hover, .sur-sombre .btn-contour:focus-visible { background: #fff; border-color: #fff; color: var(--encre); }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, padding .3s; }
.entete .navbar { padding: .9rem 0; transition: padding .3s var(--ease); }
.entete.compacte { border-bottom-color: var(--trait); box-shadow: 0 6px 24px -18px rgba(11, 27, 79, .5); }
.entete.compacte .navbar { padding: .45rem 0; }
.marque img { height: 52px; width: auto; transition: height .3s var(--ease); }
.entete.compacte .marque img { height: 42px; }
.entete .nav-link { color: var(--encre); font-weight: 600; font-size: var(--t-sm); padding: .5rem .85rem !important;
  border-radius: 999px; position: relative; }
.entete .nav-link:hover { color: var(--roi); background: var(--brume); }
.entete .nav-link.active, .entete .nav-link[aria-current="page"] { color: var(--roi); }
.entete .nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 2px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--azur); transform: translateX(-50%); }
.entete .dropdown-menu { border: 1px solid var(--trait); border-radius: var(--r-md); padding: .5rem;
  box-shadow: var(--ombre); min-width: 17rem; }
.entete .dropdown-item { border-radius: var(--r-sm); padding: .55rem .8rem; font-weight: 550; font-size: var(--t-sm); }
.entete .dropdown-item:hover, .entete .dropdown-item:focus { background: var(--brume); color: var(--roi); }
.navbar-toggler { border: 0; padding: .5rem; }
.navbar-toggler:focus { box-shadow: none; }

/* Les deux disques (motif) */
.disques { position: relative; aspect-ratio: 1.42 / 1; width: 100%; max-width: 620px; margin-inline: auto; }
.disque { position: absolute; top: 0; width: 70.4%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(11, 27, 79, .55); background: var(--encre); transform: translateZ(0); }
.disque img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 50%; }
.disque-a { left: 0; z-index: 1; border: 10px solid var(--roi); }
.disque-b { right: 0; z-index: 2; border: 10px solid var(--azur); }

.lentille { position: absolute; z-index: 3; top: 6%; left: 36.5%; width: 27%; height: 88%;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .55), rgba(124, 200, 248, 0));
  filter: blur(6px); opacity: 0; pointer-events: none; }

/* Animation d'ouverture : les disques se rejoignent, la lentille s'illumine une fois */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .disque-a { animation: rapproche-a 1.3s var(--ease) .15s both; }
  .js .hero .disque-b { animation: rapproche-b 1.3s var(--ease) .15s both; }
  .js .hero .lentille { animation: lueur 1.6s ease-out 1.25s both; }
  .js .hero .apparait { animation: monte .9s var(--ease) both; }
  .js .hero .apparait:nth-child(2) { animation-delay: .12s; }
  .js .hero .apparait:nth-child(3) { animation-delay: .24s; }
  .js .hero .apparait:nth-child(4) { animation-delay: .36s; }
}
@keyframes rapproche-a { from { transform: translateX(-18%) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rapproche-b { from { transform: translateX(18%) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lueur { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: .35; } }
@keyframes monte { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Héros d'accueil */
/* Fond bleu profond, halos tirés du logo, disques lumineux */
.hero { position: relative; overflow: hidden; isolation: isolate; color: #dfe8ff;
  padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(3.5rem, 8vw, 7rem);
  background: radial-gradient(900px 600px at 78% 45%, rgba(31, 162, 242, .32), rgba(31, 162, 242, 0) 65%),
              radial-gradient(700px 500px at 60% 110%, rgba(35, 64, 176, .7), rgba(35, 64, 176, 0) 70%),
              linear-gradient(160deg, #0d2063 0%, var(--encre) 45%, #060f33 100%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1.2px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(600px 420px at 75% 40%, #000, transparent 75%);
  mask-image: radial-gradient(600px 420px at 75% 40%, #000, transparent 75%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(124, 200, 248, .6), transparent); }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero .chapo { color: #c3d3f7; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-contact { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: var(--t-sm); color: #aebee8; }
.hero-contact a { color: #fff; font-weight: 650; text-decoration: none; }
.hero-contact a:hover { color: var(--azur-clair); text-decoration: underline; }
.hero-contact i { color: var(--azur-clair); margin-right: .4rem; }
.hero .disque { border-width: 8px; }
.hero .disque-a { border-color: #3a5ce0; box-shadow: 0 0 60px -6px rgba(58, 92, 224, .7), 0 40px 80px -30px rgba(0, 0, 0, .7); }
/* le disque de devant porte un liseré bleu nuit : séparation nette au chevauchement */
.hero .disque-b { border-color: var(--azur); overflow: visible;
  box-shadow: 0 0 0 6px var(--encre), 0 0 70px 2px rgba(31, 162, 242, .55), 0 40px 80px -30px rgba(0, 0, 0, .7); }
.hero .disque-b img { position: relative; z-index: 1; }

.hero .lentille { background: radial-gradient(closest-side, rgba(255, 255, 255, .7), rgba(124, 200, 248, .25) 60%, rgba(124, 200, 248, 0)); }
.halo { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.halo-a { width: 420px; height: 420px; right: 18%; top: 8%; background: rgba(58, 92, 224, .55); }
.halo-b { width: 360px; height: 360px; right: 2%; top: 30%; background: rgba(31, 162, 242, .45); }
@media (prefers-reduced-motion: no-preference) {
  .halo-a { animation: derive-a 18s ease-in-out infinite alternate; }
  .halo-b { animation: derive-b 22s ease-in-out infinite alternate; }
}
@keyframes derive-a { to { transform: translate(-60px, 40px) scale(1.08); } }
@keyframes derive-b { to { transform: translate(50px, -30px) scale(.94); } }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-brume { background: var(--brume-2); }
.section-sombre { background: var(--encre); color: #dfe8ff; }
.section-sombre h2, .section-sombre h3 { color: #fff; }
.section-sombre p { color: #c9d6f5; }
.entete-section { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem); flex-wrap: wrap; }
.entete-section p { margin: 0; color: var(--encre-2); }
.repere { display: inline-flex; width: 34px; height: 20px; position: relative; margin-bottom: .9rem; }
.repere::before, .repere::after { content: ""; position: absolute; top: 0; width: 20px; height: 20px; border-radius: 50%; }
.repere::before { left: 0; background: var(--roi); }
.repere::after { left: 12px; background: var(--azur); mix-blend-mode: multiply; }
.section-sombre .repere::after { mix-blend-mode: screen; }

/* Carrousel des services */
.carrousel { position: relative; }
.carrousel-piste { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 1.25rem) / 3);
  gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .5rem .25rem 1.25rem;
  margin: -.5rem -.25rem 0; scrollbar-width: none; overscroll-behavior-x: contain; }
.carrousel-piste::-webkit-scrollbar { display: none; }
@media (max-width: 991.98px) { .carrousel-piste { grid-auto-columns: calc((100% - 1.25rem) / 2); } }
@media (max-width: 575.98px) { .carrousel-piste { grid-auto-columns: 84%; } }

.carte-service { scroll-snap-align: start; position: relative; display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden; background: var(--blanc); text-decoration: none; color: var(--encre);
  border: 1px solid var(--trait); min-height: 100%; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.carte-service:hover, .carte-service:focus-visible { transform: translateY(-6px); box-shadow: var(--ombre); border-color: transparent; color: var(--encre); }
.carte-service .visuel { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--brume); }
.carte-service .visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.carte-service:hover .visuel img { transform: scale(1.06); }
.carte-service .visuel::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 27, 79, 0) 55%, rgba(11, 27, 79, .45)); }
.carte-service .pastille { position: relative; z-index: 2; margin: -26px 0 0 1.1rem; width: 52px; height: 52px; flex: none;
  border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; color: #fff; background: var(--degrade);
  box-shadow: 0 0 0 5px var(--blanc); }
.carte-service .corps { padding: .9rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.carte-service h3 { margin: 0; }
.carte-service p { margin: 0; color: var(--encre-2); font-size: var(--t-sm); }
.carte-service .suite { margin-top: auto; padding-top: .75rem; font-weight: 700; font-size: var(--t-sm); color: var(--roi);
  display: inline-flex; align-items: center; gap: .4rem; }
.carte-service .suite i { transition: transform .3s var(--ease); }
.carte-service:hover .suite i { transform: translateX(4px); }
.carte-service.bientot .etiquette { position: absolute; top: 1rem; right: 1rem; z-index: 2; background: var(--soleil);
  color: var(--encre); font-weight: 700; font-size: var(--t-xs); padding: .3rem .7rem; border-radius: 999px; }

.carrousel-commandes { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.carrousel-fleche { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--trait); background: var(--blanc);
  color: var(--encre); display: grid; place-items: center; font-size: 1.15rem; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.carrousel-fleche:hover:not(:disabled), .carrousel-fleche:focus-visible { background: var(--roi); border-color: var(--roi); color: #fff; }
.carrousel-fleche:disabled { opacity: .35; }
.carrousel-points { display: flex; gap: .5rem; flex: 1; justify-content: center; }
.carrousel-point { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: var(--trait);
  transition: width .35s var(--ease), background .3s; }
.carrousel-point[aria-current="true"] { width: 30px; border-radius: 999px; background: var(--degrade); }
.carrousel-lecture { border: 0; background: none; color: var(--encre-2); font-size: var(--t-sm); font-weight: 600;
  display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .6rem; border-radius: 999px; }
.carrousel-lecture:hover { background: var(--brume); color: var(--roi); }
@media (max-width: 575.98px) { .carrousel-lecture .txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.carrousel-progression { height: 3px; border-radius: 3px; background: var(--trait); overflow: hidden; margin-top: 1.25rem; }
.carrousel-progression span { display: block; height: 100%; width: 0; background: var(--degrade); }

/* Étapes (vraie séquence) */
.etapes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 1.5rem; position: relative; counter-reset: etape; }
.etapes::before { content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, var(--roi), var(--azur)); transform-origin: left; transform: scaleX(var(--trace, 1));
  transition: transform 1.4s var(--ease); }
.etapes li { position: relative; background: var(--blanc); border-radius: var(--r-md); padding: 0 1.25rem 1.25rem; }
.section-brume .etapes li { background: transparent; }
.etapes .num { counter-increment: etape; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-stretch: 120%; font-size: 1.25rem; color: #fff; background: var(--degrade); margin-bottom: 1rem;
  box-shadow: 0 0 0 8px var(--brume-2); position: relative; z-index: 1; }
.etapes .num::before { content: counter(etape); }
.etapes h3 { margin-bottom: .4rem; }
.etapes p { color: var(--encre-2); font-size: var(--t-sm); margin: 0; }
@media (max-width: 767.98px) {
  .etapes { grid-template-columns: 1fr; }
  .etapes::before { top: 0; bottom: 0; left: 27px; right: auto; width: 2px; height: auto; transform-origin: top;
    transform: scaleY(var(--trace, 1)); }
  .etapes li { display: grid; grid-template-columns: 56px 1fr; column-gap: 1rem; padding: 0 0 1rem; }
  .etapes .num { grid-row: span 2; margin: 0; }
}

/* Mission */
.mission { position: relative; overflow: hidden; }
.mission .fond-disques { position: absolute; right: -120px; top: 50%; width: 520px; height: 360px; transform: translateY(-50%);
  opacity: .5; pointer-events: none; }
.mission .fond-disques::before, .mission .fond-disques::after { content: ""; position: absolute; top: 0; width: 360px; height: 360px; border-radius: 50%; }
.mission .fond-disques::before { left: 0; background: radial-gradient(circle at 35% 35%, #3a5ad0, var(--roi) 70%); }
.mission .fond-disques::after { right: 0; background: radial-gradient(circle at 65% 35%, var(--azur-clair), var(--azur) 70%); mix-blend-mode: screen; }
.mission blockquote { font-size: var(--t-xl); font-stretch: 110%; font-weight: 650; line-height: 1.35; color: #fff;
  max-width: 34ch; margin: 0 0 1.5rem; position: relative; z-index: 1; }
.valeurs { display: flex; flex-wrap: wrap; gap: .6rem; position: relative; z-index: 1; padding: 0; list-style: none; margin: 0 0 2rem; }
.valeurs li { border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 999px; padding: .45rem 1rem; font-size: var(--t-sm); font-weight: 600; }

/* Bloc contact */
.contact-grille { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 991.98px) { .contact-grille { grid-template-columns: 1fr; } }
.coord { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.1rem; }
.coord li { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: center; }
.coord .ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brume);
  color: var(--roi); font-size: 1.2rem; }
.coord strong { display: block; font-size: var(--t-xs); color: var(--encre-2); font-weight: 600; }
.coord a, .coord span { color: var(--encre); font-weight: 650; text-decoration: none; }
.coord a:hover { color: var(--roi); text-decoration: underline; }
.photo-ronde { position: relative; max-width: 480px; margin-inline: auto; }
.photo-ronde img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 8px solid var(--azur); box-shadow: 0 0 0 6px var(--blanc), 0 30px 60px -30px rgba(11, 27, 79, .5); background: var(--brume); }
.photo-ronde::before { content: ""; position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--roi);
  left: -8%; bottom: -4%; z-index: -1; }

/* Bandeau des pages intérieures */
.bandeau { position: relative; overflow: hidden; background: var(--encre); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.bandeau h1 { color: #fff; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); max-width: 18ch; margin-bottom: 1rem; }
.bandeau .chapo { color: #c9d6f5; }
.bandeau .fil { font-size: var(--t-sm); margin-bottom: 1.25rem; }
.bandeau .fil a { color: #9fc6ff; }
.bandeau .fil ol { margin: 0; padding: 0; list-style: none; display: flex; gap: .5rem; flex-wrap: wrap; }
.bandeau .fil li + li::before { content: "/"; margin-right: .5rem; color: #6d7fb5; }
.bandeau .fil [aria-current] { color: #dfe8ff; }
.bandeau .deco { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 420px; height: 280px; pointer-events: none; }
.bandeau .deco::before, .bandeau .deco::after { content: ""; position: absolute; top: 0; width: 280px; height: 280px; border-radius: 50%; }
.bandeau .deco::before { left: 0; background: var(--roi); }
.bandeau .deco::after { right: 0; background: var(--azur); mix-blend-mode: screen; opacity: .9; }
.bandeau .deco.avec-photo::after { background-size: cover; background-position: center; mix-blend-mode: normal; opacity: 1;
  box-shadow: 0 0 0 8px var(--azur); }
@media (max-width: 991.98px) { .bandeau .deco { opacity: .25; right: -180px; } }
@media (prefers-reduced-motion: no-preference) {
  .js .bandeau .deco::before { animation: rapproche-a 1.1s var(--ease) both; }
  .js .bandeau .deco::after { animation: rapproche-b 1.1s var(--ease) both; }
}

/* Contenu des pages */
.contenu h2 { font-size: var(--t-xl); margin-top: 0; }
.contenu .bloc + .bloc { margin-top: clamp(2.5rem, 5vw, 4rem); }
.liste-points { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .85rem; }
.liste-points li { position: relative; padding-left: 2rem; }
.liste-points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--roi); box-shadow: 7px 0 0 -1px var(--azur); }
.liste-points strong { display: block; }
.grille-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 991.98px) { .grille-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .grille-2, .grille-3 { grid-template-columns: 1fr; } }
.tuile { background: var(--brume-2); border: 1px solid var(--trait); border-radius: var(--r-md); padding: 1.4rem; }
.tuile .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--degrade); margin-bottom: .9rem; font-size: 1.15rem; }
.tuile h3 { font-size: var(--t-md); margin-bottom: .35rem; }
.tuile p, .tuile ul { font-size: var(--t-sm); color: var(--encre-2); margin: 0; }
.tuile ul { padding-left: 1.1rem; }
.encadre { border-radius: var(--r-md); padding: 1.25rem 1.4rem; background: var(--brume); border-left: 4px solid var(--azur);
  font-size: var(--t-sm); }
.encadre p { margin: 0; }
.a-completer { background: #fff4d6; border-radius: 4px; padding: 0 .3em; font-weight: 600; }

.colonne-laterale { position: sticky; top: 110px; }
.carte-action { border-radius: var(--r-lg); padding: 1.75rem; background: var(--encre); color: #dfe8ff; position: relative; overflow: hidden; }
.carte-action h2 { color: #fff; font-size: var(--t-lg); }
.carte-action p { color: #c9d6f5; font-size: var(--t-sm); }
.carte-action::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; right: -60px; bottom: -70px;
  background: var(--azur); opacity: .35; }
.carte-action .btn { position: relative; z-index: 1; }
.carte-action a.tel { color: #fff; font-weight: 700; text-decoration: none; display: block; position: relative; z-index: 1; }

/* Autres services (pied de page des services) */
.autres { display: flex; gap: .6rem; flex-wrap: wrap; }
.autres a { border: 1px solid var(--trait); border-radius: 999px; padding: .5rem 1rem; text-decoration: none; color: var(--encre);
  font-weight: 600; font-size: var(--t-sm); display: inline-flex; gap: .5rem; align-items: center; transition: background .2s, color .2s, border-color .2s; }
.autres a:hover { background: var(--roi); border-color: var(--roi); color: #fff; }
.autres i { color: var(--azur); }
.autres a:hover i { color: #fff; }

/* FAQ */
.accordion { --bs-accordion-border-color: var(--trait); --bs-accordion-border-radius: var(--r-md);
  --bs-accordion-inner-border-radius: var(--r-md); --bs-accordion-active-bg: var(--brume); --bs-accordion-active-color: var(--roi);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(31, 162, 242, .4); }
.accordion-button { font-weight: 700; font-size: var(--t-md); }

/* Formulaires */
.form-label { font-weight: 650; font-size: var(--t-sm); }
.form-control, .form-select { border-radius: var(--r-sm); border-color: var(--trait); padding: .75rem .9rem; font-size: var(--t-md); }
.form-control:focus, .form-select:focus { border-color: var(--azur); box-shadow: 0 0 0 3px rgba(31, 162, 242, .25); }
.formulaire { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.aide { font-size: var(--t-xs); color: var(--encre-2); }

/* Pied de page */
.pied { background: #071238; color: #b6c4ea; padding: 4rem 0 2rem; font-size: var(--t-sm); }
.pied h2 { color: #fff; font-size: var(--t-md); font-stretch: 105%; margin-bottom: 1rem; }
.pied a { color: #dfe8ff; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.pied .logo-pied { background: #fff; border-radius: var(--r-md); padding: .6rem .9rem; display: inline-block; margin-bottom: 1rem; }
.pied .logo-pied img { height: 54px; width: auto; }
.pied .bas { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 3rem; padding-top: 1.5rem; display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* Apparitions au défilement (discrètes, une seule fois) */
@media (prefers-reduced-motion: no-preference) {
  .js .revele { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .revele.vu { opacity: 1; transform: none; }
  .js .etapes:not(.vu) { --trace: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Page 404 */
.page-404 { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.page-404 .disques { max-width: 280px; margin-bottom: 2rem; }

@media (max-width: 991.98px) {
  .hero .disques { max-width: 460px; margin-top: 3rem; }
  .entete .navbar-collapse { padding: 1rem 0; }
}

/* =====================================================================
   Écran d'ouverture : fond bleu, les disques fusionnent, le logo apparaît,
   puis le rideau se lève. À chaque arrivée sur l'accueil depuis l'extérieur.
   Avec « réduire les animations », les étapes s'enchaînent sans mouvement (logo fixe).
   ===================================================================== */
.ouverture { display: none; }
.intro .ouverture { display: grid; position: fixed; inset: 0; z-index: 3000; place-items: center; overflow: hidden;
  background: radial-gradient(700px 500px at 50% 45%, rgba(31, 162, 242, .35), rgba(31, 162, 242, 0) 70%),
              linear-gradient(160deg, #0d2063 0%, var(--encre) 55%, #060f33 100%);
  animation: rideau .9s cubic-bezier(.76, 0, .24, 1) 2.35s forwards; cursor: pointer; }
.ouverture .scene { position: relative; width: min(340px, 70vw); aspect-ratio: 1.24; }
.ouverture .d { position: absolute; top: 0; width: 80%; aspect-ratio: 1; border-radius: 50%; }
.ouverture .d1 { left: 0; background: radial-gradient(circle at 35% 30%, #4a6cf0, var(--roi) 70%);
  box-shadow: 0 0 80px rgba(58, 92, 224, .7); animation: fusion-g 1.1s var(--ease) .1s both, eteint .5s ease 1.25s forwards; }
.ouverture .d2 { right: 0; background: radial-gradient(circle at 60% 30%, #8fd3ff, var(--azur) 70%); mix-blend-mode: screen;
  box-shadow: 0 0 90px rgba(31, 162, 242, .7); animation: fusion-d 1.1s var(--ease) .1s both, eteint .5s ease 1.25s forwards; }
.ouverture .logo { position: absolute; inset: -6% -4%; width: 108%; height: auto; opacity: 0;
  filter: drop-shadow(0 0 30px rgba(124, 200, 248, .55)); animation: logo-in .8s var(--ease) 1.15s forwards; }
.ouverture .barre { position: absolute; left: 50%; bottom: 14vh; width: 140px; height: 2px; margin-left: -70px; border-radius: 2px;
  background: rgba(255, 255, 255, .15); overflow: hidden; }
.ouverture .barre::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--roi), var(--azur-clair));
  transform-origin: left; animation: charge 2.2s cubic-bezier(.4, 0, .2, 1) forwards; }
.ouverture .passer { position: absolute; right: 1.5rem; bottom: 1.5rem; color: #aebee8; font-size: var(--t-xs); font-weight: 600;
  background: none; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: .4rem .9rem; }
.ouverture .passer:hover { color: #fff; border-color: #fff; }
@keyframes fusion-g { from { transform: translateX(-70%) scale(.5); opacity: 0; } 60% { opacity: 1; } to { transform: translateX(10%) scale(1); opacity: 1; } }
@keyframes fusion-d { from { transform: translateX(70%) scale(.5); opacity: 0; } 60% { opacity: 1; } to { transform: translateX(-10%) scale(1); opacity: 1; } }
@keyframes eteint { to { opacity: 0; transform: scale(1.25); filter: blur(10px); } }
@keyframes logo-in { from { opacity: 0; transform: scale(.82); filter: blur(8px) drop-shadow(0 0 30px rgba(124, 200, 248, .55)); }
  to { opacity: 1; transform: none; filter: drop-shadow(0 0 30px rgba(124, 200, 248, .55)); } }
@keyframes charge { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rideau { to { transform: translateY(-100%); visibility: hidden; } }
.ouverture.fini { animation: rideau .7s cubic-bezier(.76, 0, .24, 1) forwards !important; }
/* Les animations du héros attendent la fin de l'ouverture */
.intro .hero .apparait, .intro .hero .disque, .intro .hero .lentille { animation-play-state: paused !important; }

/* =====================================================================
   En-tête transparent posé sur le bleu (accueil), blanc au défilement
   ===================================================================== */
.accueil .entete { position: fixed; left: 0; right: 0; }
.accueil .entete:not(.compacte):not(.ouvert) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.marque .logo-sombre { display: none; }
.accueil .entete:not(.compacte):not(.ouvert) .logo-normal { display: none; }
.accueil .entete:not(.compacte):not(.ouvert) .logo-sombre { display: block; }
.accueil .entete:not(.compacte):not(.ouvert) .nav-link { color: #e6eeff; }
.accueil .entete:not(.compacte):not(.ouvert) .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.accueil .entete:not(.compacte):not(.ouvert) .nav-link[aria-current="page"] { color: #fff; }
.accueil .entete:not(.compacte):not(.ouvert) .navbar-toggler { color: #fff; }
.accueil .entete:not(.compacte):not(.ouvert) .btn-roi { background: #fff; color: var(--roi); }
.accueil .entete.ouvert { background: #fff; }
.accueil .hero { padding-top: calc(clamp(3rem, 7vw, 6.5rem) + 84px); min-height: min(100vh, 980px); display: flex; align-items: center; }
.accueil .hero > .container { width: 100%; }

/* =====================================================================
   Fond animé du héros : flux de particules (canvas) + orbites
   ===================================================================== */
.flux { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.orbites { position: absolute; inset: -14% -10%; pointer-events: none; z-index: 0; }
.orbite { position: absolute; border-radius: 50%; border: 1px dashed rgba(124, 200, 248, .35); inset: 0; }
.orbite-2 { inset: 9% 12%; border-style: solid; border-color: rgba(255, 255, 255, .08); }
.orbite .satellite { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: var(--azur-clair); box-shadow: 0 0 14px 3px rgba(124, 200, 248, .8); }
.orbite-2 .satellite { top: auto; bottom: -4px; width: 8px; height: 8px; background: #fff; box-shadow: 0 0 12px 2px rgba(255, 255, 255, .7); }
.hero .disques { z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .orbite-1 { animation: tourne 26s linear infinite; }
  .orbite-2 { animation: tourne 38s linear infinite reverse; }
  .js .hero .disques { animation: flotte 7s ease-in-out 1.6s infinite alternate; }
}
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes flotte { to { transform: translateY(-12px); } }
.defiler { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); color: #aebee8; font-size: var(--t-xs);
  display: flex; flex-direction: column; align-items: center; gap: .4rem; text-decoration: none; z-index: 2; }
.defiler span { width: 22px; height: 34px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 12px; position: relative; }
.defiler span::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: #fff; }
@media (prefers-reduced-motion: no-preference) { .defiler span::after { animation: molette 1.8s ease-in-out infinite; } }
@keyframes molette { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
.defiler:hover { color: #fff; }
@media (max-height: 760px), (max-width: 991.98px) { .defiler { display: none; } }

/* =====================================================================
   Fond animé de toute la page d'accueil : halos qui dérivent derrière les sections
   ===================================================================== */
.accueil { background: var(--brume-2); }
.fond-page { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.fond-page i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.fond-page i:nth-child(1) { width: 520px; height: 520px; left: -160px; top: 20%; background: rgba(35, 64, 176, .35); }
.fond-page i:nth-child(2) { width: 460px; height: 460px; right: -140px; top: 55%; background: rgba(31, 162, 242, .35); }
.fond-page i:nth-child(3) { width: 380px; height: 380px; left: 40%; top: 85%; background: rgba(124, 200, 248, .4); }
@media (prefers-reduced-motion: no-preference) {
  .fond-page i:nth-child(1) { animation: derive-a 24s ease-in-out infinite alternate; }
  .fond-page i:nth-child(2) { animation: derive-b 28s ease-in-out infinite alternate; }
  .fond-page i:nth-child(3) { animation: derive-a 32s ease-in-out infinite alternate-reverse; }
}
.accueil .section-brume, .accueil main > .section:not(.section-sombre) { background: transparent; }
.accueil .etapes .num { box-shadow: 0 0 0 8px var(--brume-2); }
.accueil .etapes li { background: transparent; }
.accueil .carte-service { background: rgba(255, 255, 255, .85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (max-width: 991.98px) {
  .entete .nav-link[aria-current="page"]::after { left: 0; top: 50%; bottom: auto; transform: translateY(-50%); }
  .entete .nav-link { padding-left: 1rem !important; }
}

/* =====================================================================
   Accueil : icônes flottantes et lumières (v5)
   ===================================================================== */
/* Faisceaux lumineux qui tournent derrière les disques */
.faisceaux { position: absolute; z-index: 0; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%);
  pointer-events: none; border-radius: 50%; opacity: .55;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(124, 200, 248, .35) 18deg, transparent 40deg,
    transparent 120deg, rgba(58, 92, 224, .45) 140deg, transparent 165deg,
    transparent 235deg, rgba(255, 255, 255, .22) 250deg, transparent 270deg, transparent 360deg);
  -webkit-mask-image: radial-gradient(circle, #000 28%, transparent 68%); mask-image: radial-gradient(circle, #000 28%, transparent 68%);
  filter: blur(6px); }

/* Bulles d'icônes en verre */
.icones-flottantes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.bulle { position: absolute; display: grid; place-items: center; border-radius: 50%;
  width: var(--t, 56px); height: var(--t, 56px); font-size: calc(var(--t, 56px) * .42); color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 24px -4px rgba(124, 200, 248, .6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bulle i { filter: drop-shadow(0 0 8px rgba(124, 200, 248, .9)); }
.bulle.azur { color: var(--azur-clair); }
.bulle.soleil { color: var(--soleil); }
.bulle.loin { opacity: .55; filter: blur(1.5px); }
@media (prefers-reduced-motion: no-preference) {
  .bulle { animation: bulle-flotte var(--d, 7s) ease-in-out var(--r, 0s) infinite alternate; }
  .faisceaux { animation: tourne 24s linear infinite; }
}
@keyframes bulle-flotte {
  0% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(var(--x, 8px), calc(var(--y, -18px) * .6)) rotate(3deg); }
  100% { transform: translate(calc(var(--x, 8px) * -.5), var(--y, -18px)) rotate(-2deg); }
}

/* Étincelles qui scintillent */
.etincelles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.etincelles b { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 10px 3px rgba(124, 200, 248, .9), 0 0 2px 1px #fff; opacity: .2; }
.etincelles b::before, .etincelles b::after { content: ""; position: absolute; left: 50%; top: 50%; background: rgba(255, 255, 255, .8);
  transform: translate(-50%, -50%); }
.etincelles b::before { width: 18px; height: 1px; }
.etincelles b::after { width: 1px; height: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .etincelles b { animation: scintille var(--d, 3.4s) ease-in-out var(--r, 0s) infinite; }
}
@keyframes scintille { 0%, 100% { opacity: .1; transform: scale(.4) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

/* Icônes en filigrane derrière les sections claires */
.filigrane { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.filigrane i { position: absolute; font-size: var(--t, 64px); color: var(--roi); opacity: .07; }
.filigrane i.az { color: var(--azur); opacity: .1; }
@media (prefers-reduced-motion: no-preference) {
  .filigrane i { animation: derive-icone var(--d, 16s) ease-in-out var(--r, 0s) infinite alternate; }
}
@keyframes derive-icone { from { transform: translate(0, 0) rotate(-8deg); } to { transform: translate(var(--x, 30px), var(--y, -40px)) rotate(8deg); } }
.accueil #services, .accueil .contact-section { position: relative; }
.accueil #services > .container, .accueil .contact-section > .container { position: relative; z-index: 1; }

/* Balayage de lumière sur la bande mission */
.mission::after { content: ""; position: absolute; top: -50%; bottom: -50%; width: 35%; left: -40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(124, 200, 248, .18), rgba(255, 255, 255, .12), transparent);
  transform: skewX(-18deg); }
@media (prefers-reduced-motion: no-preference) { .mission::after { animation: balaye 7s ease-in-out 1s infinite; } }
@keyframes balaye { 0% { left: -40%; } 55%, 100% { left: 120%; } }

/* Flux et halos plus présents */
.hero .halo-a { background: rgba(58, 92, 224, .7); }
.hero .halo-b { background: rgba(31, 162, 242, .6); }
.hero::before { opacity: .55; }
@media (max-width: 991.98px) {
  .bulle { --t: 42px !important; }
  .bulle.masque-mobile { display: none; }
}
.disques .bulle { z-index: 4; }
.disques .bulle.loin { z-index: 0; }
@media (max-width: 991.98px) { .masque-mobile-zone { display: none; } }
