/* Ajustements éditoriaux et visuels demandés */

html{scroll-behavior:smooth}

/* Zoom progressif au fil du defilement. Les classes sont ajoutees par script
   afin que le contenu reste visible si JavaScript est indisponible. */
.scroll-zoom{
  opacity:.24;
  transform:scale(.955);
  transform-origin:50% 18%;
  transition:opacity .72s ease,transform 1s cubic-bezier(.2,.72,.2,1);
  will-change:transform,opacity;
}
.scroll-zoom.is-zoomed-in{
  opacity:1;
  transform:scale(1);
}
@media(max-width:850px){
  .scroll-zoom{transform:scale(.97);transition-duration:.65s,.85s}
  .scroll-zoom.is-zoomed-in{transform:scale(1)}
}
@media(prefers-reduced-motion:reduce){
  .scroll-zoom,.scroll-zoom.is-zoomed-in{opacity:1;transform:none;transition:none;will-change:auto}
}

/* Fenetre de presentation des technologies */
.technologies-trigger{
  width:100%;margin-top:2rem;padding:1.15rem 1.3rem;border:1px solid #31515a;border-radius:16px;
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1.2rem;text-align:left;
  background:linear-gradient(110deg,#0e2730,#101c20);color:#c8d8d9;cursor:pointer;
  transition:border-color .25s ease,background .25s ease,transform .25s ease;
}
.technologies-trigger:hover{border-color:#63b5c6;background:linear-gradient(110deg,#113540,#122328);transform:translateY(-2px)}
.technologies-trigger>span{color:#70c3d5;font-size:.58rem;font-weight:700;letter-spacing:.16em}
.technologies-trigger>em{color:#a9c7cd;font-size:.68rem;font-style:normal;white-space:nowrap}
.technology-logo-strip{display:flex;align-items:center;justify-content:center;gap:.75rem;min-width:0}
.technology-logo-strip figure{display:grid;grid-template-columns:38px auto;align-items:center;gap:.45rem;margin:0;padding:.38rem .55rem;border-radius:10px;background:#f7faf9;color:#173841;box-shadow:0 5px 18px #0003}
.technology-logo-strip img{width:30px;height:30px;object-fit:contain}
.technology-logo-strip figcaption{font-size:.58rem;font-weight:600;white-space:nowrap}
.technologies-dialog{width:min(1240px,92vw);max-width:none;padding:0;border:0;border-radius:28px;background:#edf2f0;color:#13323a;box-shadow:0 40px 120px #00131c80;overflow:hidden}
.technologies-dialog::backdrop{background:#031217c7;backdrop-filter:blur(8px)}
.technologies-dialog-shell{position:relative;padding:clamp(2rem,5vw,5rem)}
.technologies-dialog-close{position:absolute;right:1.3rem;top:1.2rem;width:44px;height:44px;border:1px solid #173f492b;border-radius:50%;background:#fff;color:#143b45;font-size:1.7rem;line-height:1;cursor:pointer}
.technologies-dialog .kicker{margin-bottom:1rem;color:#17758a}
.technologies-dialog h2{max-width:900px;margin:0;font-size:clamp(2.2rem,4.5vw,4.8rem);line-height:1;letter-spacing:-.05em}
.technologies-dialog-intro{max-width:780px;margin:1.3rem 0 2.3rem;color:#577078;line-height:1.7}
.technologies-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.technologies-grid article{position:relative;min-height:190px;padding:1.5rem;border-radius:18px;background:#fff;box-shadow:inset 0 0 0 1px #1f4c561f}
.technology-brand-mark{display:grid;place-items:center;width:58px;height:58px;border:1px solid #dbe6e3;border-radius:14px;background:#f7faf9;box-shadow:0 8px 24px #103c4a12}
.technology-brand-mark img{width:40px;height:40px;object-fit:contain}
.technologies-grid h3{margin:1.2rem 0 .7rem;font-size:1.25rem;font-weight:600}
.technologies-grid p{margin:0;color:#597078;font-size:.78rem;line-height:1.55}
.technologies-dialog-footer{display:flex;justify-content:space-between;align-items:center;gap:2rem;margin-top:2rem}
.technologies-dialog-footer p{max-width:620px;margin:0;color:#687d82;font-size:.72rem;line-height:1.55}
.technologies-dialog-cta{flex:none}
@media(max-width:850px){
  .technologies-trigger{grid-template-columns:1fr}.technologies-trigger>em{white-space:normal}
  .technology-logo-strip{justify-content:flex-start;flex-wrap:wrap}
  .technologies-dialog{width:95vw;max-height:92vh;border-radius:20px}.technologies-dialog-shell{padding:4rem 1.4rem 2rem;overflow:auto;max-height:92vh}
  .technologies-grid{grid-template-columns:1fr 1fr}.technologies-dialog-footer{align-items:flex-start;flex-direction:column}
}
@media(max-width:520px){.technology-logo-strip figure{grid-template-columns:30px auto}.technology-logo-strip img{width:24px;height:24px}.technologies-grid{grid-template-columns:1fr}.technologies-dialog-cta{width:100%}.technologies-grid article{min-height:0}}

/* Visuel d'accueil moderne */
.hero-art{background:linear-gradient(115deg,#041923 0%,#0a3140 58%,#0b4354 100%)}
.hero-art:before{inset:0;right:auto;bottom:auto;width:72%;height:100%;border:0;transform:none;z-index:1;background:linear-gradient(90deg,#052634 16%,rgba(5,42,55,.97) 50%,rgba(7,56,72,.48) 82%,rgba(7,56,72,.08) 100%)}
.hero-installation{position:absolute;right:4vw;top:14vh;width:min(50vw,980px);height:68vh;margin:0;border:1px solid rgba(87,191,225,.5);overflow:hidden;box-shadow:0 32px 90px rgba(0,0,0,.42)}
.hero-installation:after{content:"";position:absolute;z-index:2;inset:0;background:linear-gradient(90deg,rgba(3,32,43,.97) 0%,rgba(4,48,63,.82) 24%,rgba(6,65,83,.42) 52%,transparent 74%),linear-gradient(0deg,rgba(3,37,49,.68),transparent 42%),linear-gradient(145deg,rgba(9,89,113,.32),transparent 68%);pointer-events:none}
.hero-installation img{display:block;width:100%;height:100%;object-fit:cover;object-position:61% center;filter:saturate(.84) contrast(1.04) brightness(.94)}
.hero-carousel{background:#061721}
.hero-carousel .hero-slide{position:absolute;inset:0;opacity:0;transform:scale(1.035);transition:opacity 1s ease,transform 6s ease;pointer-events:none}
.hero-carousel .hero-slide.is-active{opacity:1;transform:scale(1);z-index:1}
.hero-installation figcaption{position:absolute;z-index:3;left:1.5rem;bottom:1.25rem;display:flex;align-items:center;flex-wrap:wrap;gap:.45rem .85rem;max-width:calc(100% - 8.5rem);padding:.6rem .8rem;border-left:2px solid #55c0e6;background:rgba(5,45,59,.92);color:#bce9f5;letter-spacing:.15em}
.hero-installation figcaption .hero-theme{font-size:.66rem;font-weight:600;color:#f3fafc}
.hero-installation figcaption small{font-size:.48rem;color:#91b9c6}
.hero-carousel-nav{position:absolute;z-index:4;right:1.4rem;bottom:1.5rem;display:flex;align-items:center;gap:.42rem}
.hero-carousel-nav button{width:8px;height:8px;padding:0;border:1px solid rgba(215,242,250,.72);border-radius:50%;background:transparent;cursor:pointer;transition:.25s ease}
.hero-carousel-nav button.is-active{width:25px;border-radius:8px;background:#61bddd;border-color:#61bddd}
.hero-carousel-nav button:focus-visible{outline:2px solid #fff;outline-offset:4px}
.hero-copy{max-width:790px}

@media(prefers-reduced-motion:reduce){.hero-carousel .hero-slide{transition:none}}

/* Interface de pilotage plus détaillée */
.control{min-height:860px}
.tablet{width:90%;height:610px;margin:6rem 0 4rem;padding:1.25rem;transform:perspective(1200px) rotateY(-5deg) rotateX(1deg)}
.tablet-top{align-items:center;gap:1rem}
.system-online{display:flex;align-items:center;gap:.42rem;margin-left:auto;color:#7fb8c6}
.system-online i{width:6px;height:6px;border-radius:50%;background:#53d3a4;box-shadow:0 0 10px #53d3a4}
.tablet-body{height:500px;margin-top:.8rem;padding:1.2rem 1.35rem;display:flex;flex-direction:column}
.tablet-nav{display:flex;gap:.55rem;padding-bottom:.8rem;border-bottom:1px solid #1d4d5f}
.tablet-nav span{padding:.42rem .7rem;border-radius:6px;color:#668b98;font-size:.55rem;text-transform:uppercase;letter-spacing:.1em}
.tablet-nav .active{background:#15536b;color:#e9f7fa}
.tablet-scene{display:flex;align-items:end;justify-content:space-between;padding:1.1rem 0 .9rem}
.tablet-scene p{margin:0 0 .25rem;color:#55aed0;font-size:.5rem;letter-spacing:.16em}
.tablet-scene h3{margin:0;font-size:1.6rem}
.tablet-scene>span{color:#648793;font-size:.55rem}
.tablet-controls{display:grid;grid-template-columns:1.25fr .75fr;gap:1rem;min-height:205px}
.zone-panel,.media-panel{padding:1rem;border:1px solid #194559;background:rgba(4,20,29,.42)}
.zone-panel>small,.media-panel>small{display:block;margin-bottom:.8rem;color:#648d9b;font-size:.48rem;letter-spacing:.14em}
.zone-control{display:grid;grid-template-columns:60px 1fr 32px;align-items:center;gap:.7rem;margin:.7rem 0;color:#b8cbd0;font-size:.58rem}
.zone-control b{font-weight:500;color:#f2f8f9;text-align:right}
.level{height:5px;border-radius:6px;background:#163644;overflow:hidden}
.level i{display:block;width:var(--level);height:100%;background:linear-gradient(90deg,#156987,#54bce0)}
.source-card{display:flex;align-items:center;gap:.75rem;margin-bottom:1.15rem;padding:.75rem;border-radius:8px;background:#0c3445}
.source-card .play{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#176b8c;color:#fff;font-size:.6rem}
.source-card div{display:flex;flex-direction:column;gap:.2rem}
.source-card b{font-size:.62rem;font-weight:500}
.source-card em{color:#7195a1;font-size:.48rem;font-style:normal}
.light-control{display:flex;justify-content:space-between;gap:.5rem;padding:.7rem;border:1px solid #245064;color:#a9bec4;font-size:.55rem}
.light-control b{color:#54bce0}
.scene-actions{display:flex;align-items:center;gap:.45rem;margin-top:auto;padding-top:.85rem;border-top:1px solid #1d4d5f}
.scene-actions>span{margin-right:auto;color:#648d9b;font-size:.48rem;letter-spacing:.12em}
.tablet-body .scene-actions button{float:none;padding:.55rem .75rem;border:1px solid #28576a;background:transparent;color:#8eabb4;font-size:.5rem}
.tablet-body .scene-actions button.active{background:#176b8c;border-color:#176b8c;color:#fff}
.tablet>small{margin-top:.65rem}

/* Pictogrammes à la place de la numérotation des secteurs */
.sector-grid article{position:relative}
.sector-picto{width:52px;height:52px;padding:12px;border:1px solid rgba(66,166,206,.42);border-radius:50%;fill:none;stroke:#52b2d6;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.sector-grid h3{margin-top:auto}
.sector-grid .wide .sector-picto{border-color:rgba(129,204,231,.5);stroke:#8ad2eb}

/* Identité temporaire FEC dans l'univers loisirs */
.fec-logo{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#0d4d68;color:#fff;font:700 .86rem var(--serif);letter-spacing:.08em;box-shadow:0 5px 12px rgba(16,67,82,.18)}
.references-petrol .universe-logos .fec-logo{width:46px;height:44px}

/* Le bouton des témoignages revient dans le flux, en bas de page */
.reviews-tab{position:relative;z-index:2;right:auto;top:auto;bottom:auto;transform:none;width:max-content;margin:3.5rem auto;padding:.9rem 1.2rem;border:1px solid #47717c;border-radius:999px;writing-mode:horizontal-tb;box-shadow:0 14px 34px rgba(0,22,29,.2)}
.reviews-tab:hover{padding-right:1.45rem}
.reviews-tab-icon{writing-mode:horizontal-tb;transform:none}

@media(max-width:1000px){
  .hero-installation{right:-12vw;width:72vw;opacity:.62}
  .control{grid-template-columns:1fr}
  .tablet{margin:0 auto 5rem;width:90%;max-width:780px;transform:none}
}
@media(max-width:700px){
  .hero-installation{top:18%;right:-28%;width:100vw;height:58vh}
  .hero-installation figcaption{left:1rem;bottom:1rem}
  .hero-installation figcaption small{display:none}
  .hero-carousel-nav{right:1rem;bottom:1.25rem}
  .hero-art:before{width:100%;background:linear-gradient(90deg,#052634 18%,rgba(5,42,55,.94) 68%,rgba(7,56,72,.42))}
  .tablet{height:auto;padding:.8rem;border-width:5px}
  .tablet-body{height:auto;min-height:500px;padding:.9rem}
  .tablet-controls{grid-template-columns:1fr}
  .scene-actions{flex-wrap:wrap}
  .scene-actions>span{width:100%;margin:0 0 .35rem}
  .tablet-scene{align-items:flex-start;flex-direction:column;gap:.4rem}
  .reviews-tab{right:auto;bottom:auto;margin:2.5rem auto;padding:.8rem 1rem}
}
.form-honey{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
#contact-form .button:disabled{cursor:wait;opacity:.62;transform:none}
.form-status[data-state="success"]{color:#146b4a}
.form-status[data-state="error"]{color:#9a2f2f}
