/* ==========================================================================
   ORASSI Engineering
   Feuille de style de la page d'accueil (V5)

   Autonome : ne touche ni a assets/style.css (pages interieures) ni a
   assets/menu.css (barre de navigation commune). Les valeurs de taille et de
   position sont relevees sur la maquette de reference (largeur 1536 px).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables
   -------------------------------------------------------------------------- */
:root{
  /* Fonds */
  --bg:#02101B;
  --hero-bg:#010306;

  /* Bleus */
  --blue:#3B9BE1;          /* accents texte, traits, pictogrammes */
  --blue-line:#2E86D9;     /* filets et bordures */
  --blue-btn:#2A7DC3;      /* bouton CONTACT */
  --blue-btn-hi:#3792D9;

  /* Textes */
  --white:#F4F7F9;
  --text:#DCE6ED;
  --muted:#AEBFCB;
  --dim:#93A2AD;

  /* Filets */
  --line:rgba(255,255,255,.16);
  --line-soft:rgba(255,255,255,.10);

  /* Structure */
  --shell:1408px;
  --header-h:120px;
  --hero-h:806px;

  /* Typographies */
  --font:"Roboto Condensed","Barlow Semi Condensed","Arial Narrow",system-ui,sans-serif;
}

/* --------------------------------------------------------------------------
   2. Bases
   -------------------------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font);
  font-size:21px;
  line-height:33px;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}

:focus-visible{outline:2px solid var(--blue);outline-offset:3px}

.shell{width:min(var(--shell),100% - 48px);margin-inline:auto}

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}
.sr-only:focus{           /* lien d'evitement visible au clavier */
  position:fixed;top:12px;left:12px;z-index:200;
  width:auto;height:auto;margin:0;padding:10px 18px;clip:auto;
  background:#02101B;color:#fff;border:1px solid var(--blue);
}

/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */
.hero{
  position:relative;
  min-height:var(--hero-h);
  display:flex;flex-direction:column;
  overflow:hidden;
  background:var(--hero-bg);
  border-bottom:1px solid #2F3D48;
}
@media (min-height:1030px) and (min-width:1100px){
  .hero{min-height:calc(100dvh - 217px)}
}

/* Photo : cadrage de la maquette (85 % de la largeur, calee en bas) */
.hero-media{
  position:absolute;left:-1.3%;bottom:-10px;width:84.6%;
  aspect-ratio:1672/941;
  background:url("hero-industrial-orassi.webp") center/cover no-repeat;
  z-index:0;
}

/* Voiles : lisibilite du texte a gauche, fondu du bord droit de la photo */
.hero-veil{position:absolute;inset:0;z-index:1;pointer-events:none}
.hero-veil::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,
    rgba(1,3,6,.82) 0%,
    rgba(1,3,6,.833) 6%,
    rgba(1,3,6,.812) 16%,
    rgba(1,3,6,.742) 22%,
    rgba(1,3,6,.66) 28%,
    rgba(1,3,6,.50) 34%,
    rgba(1,3,6,.35) 41%,
    rgba(1,3,6,.20) 47%,
    rgba(1,3,6,.07) 53%,
    rgba(1,3,6,.10) 59%,
    rgba(1,3,6,.21) 66%,
    rgba(1,3,6,.55) 72%,
    rgba(1,3,6,.80) 78%,
    var(--hero-bg) 84%);
}
.hero-veil::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,
    rgba(1,3,6,.35) 0%,
    rgba(1,3,6,.10) 16%,
    rgba(1,3,6,0) 24%,
    rgba(1,3,6,0) 80%,
    rgba(1,3,6,.34) 100%);
}

.hero-inner{
  position:relative;z-index:2;
  flex:1;
  padding-top:var(--header-h);
  display:grid;
  grid-template-columns:minmax(0,1fr) 400px;
  gap:72px;
  align-items:center;
}

/* --- Colonne texte ------------------------------------------------------ */
.hero-copy{position:relative;max-width:640px;margin-bottom:10px}

.eyebrow{
  font-size:44px;font-weight:700;line-height:56px;
  text-transform:uppercase;color:var(--white);
  text-shadow:0 2px 18px rgba(0,0,0,.55);
}

.hero-title{
  margin-top:6px;
  font-size:40px;font-weight:700;line-height:53px;
  text-transform:uppercase;color:var(--white);
  text-shadow:0 2px 18px rgba(0,0,0,.55);
}
.hero-title span{display:block}
.hero-title em{font-style:normal;color:var(--blue)}

.hero-rule{
  width:58px;height:2px;margin:27px 0 0;
  background:var(--blue-line);border:0;
  box-shadow:0 0 10px rgba(59,155,225,.5);
}

.hero-text{
  margin-top:42px;
  font-size:21px;line-height:33px;color:var(--text);
  text-shadow:0 1px 12px rgba(0,0,0,.5);
}
.hero-text strong{font-weight:400;color:var(--blue)}

.btn-ghost{
  margin-top:53px;
  display:inline-flex;align-items:center;gap:16px;
  height:52px;padding:0 27px;
  border:1.5px solid rgba(59,155,225,.75);
  background:rgba(1,3,6,.35);
  color:#fff;
  font-size:18.5px;font-weight:500;line-height:1;
  text-transform:uppercase;
  transition:background .22s ease,border-color .22s ease;
}
.btn-ghost svg{width:16px;height:14px;flex:0 0 auto;color:var(--blue);transition:transform .22s ease}
.btn-ghost:hover{background:rgba(42,125,195,.22);border-color:var(--blue)}
.btn-ghost:hover svg{transform:translateX(5px)}

/* Réseaux sociaux sous le CTA du hero.
   Sur desktop ils sont hors du flux afin de ne jamais modifier le centrage
   vertical ni la hauteur du hero. Les dimensions intrinsèques sont aussi
   définies dans le HTML pour rester sûres même si une ancienne CSS est cachée. */
.hero-socials{
  position:absolute;
  left:0;
  bottom:-35px;
  display:flex;align-items:center;gap:7px;
  width:max-content;
  line-height:0;
}
.hero-social-link{
  width:26px;height:26px;
  flex:0 0 26px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid rgba(95,178,240,.44);
  border-radius:5px;
  background:rgba(1,3,6,.24);
  color:#9ED7FF;
  line-height:0;
  transition:transform .2s ease,background .2s ease,border-color .2s ease,color .2s ease;
}
.hero-social-link svg{display:block;width:15px;height:15px;max-width:15px;max-height:15px;overflow:visible}
.hero-social-link svg rect,
.hero-social-link svg circle,
.hero-social-link svg path{fill:none;stroke:currentColor;stroke-width:1.45;stroke-linejoin:round}
.hero-social-link svg .social-fill{fill:currentColor}
.hero-social-link svg .social-no-stroke{stroke:none}
.hero-social-link:hover{
  transform:translateY(-2px);
  background:rgba(42,125,195,.22);
  border-color:var(--blue);
  color:#D9F1FF;
}

/* --------------------------------------------------------------------------
   5. Schema « Systems map »
   -------------------------------------------------------------------------- */
.smap{margin-top:106px;justify-self:end;width:400px}

.smap-canvas{position:relative;height:554px}

.smap-links{position:absolute;inset:0;width:400px;height:554px;overflow:visible}
.smap-links .link-glow{fill:none;stroke:rgba(59,155,225,.32);stroke-width:4.5;filter:blur(3px)}
.smap-links .link{fill:none;stroke:#5FB2F0;stroke-width:1.5;stroke-dasharray:3 5;stroke-linecap:round}
.smap-links .spark{fill:#EAF6FF;filter:drop-shadow(0 0 7px #6FC0FF)}
.smap-links .anchor{fill:#D6EEFF;filter:drop-shadow(0 0 8px #5FB6F7)}
.smap-links .anchor-start{fill:#9ED7FF;opacity:.9}

.smap-node{
  position:absolute;left:-43px;width:198px;
  display:grid;grid-template-columns:120px 63px;grid-template-rows:auto auto;
  column-gap:15px;align-items:center;text-align:right;
  transition:transform .25s ease;
}
.smap-node--1{top:54px}
.smap-node--2{top:231px}
.smap-node--3{top:409px}
.smap-node:hover{transform:translateY(-3px)}
.smap-node .hex{grid-column:2;grid-row:1 / span 2;width:63px;height:65px;margin:0;align-self:center}
.smap-node .hex .ring{fill:rgba(3,17,28,.35);stroke:#B9CBD8;stroke-width:1.5;transition:stroke .25s ease}
.smap-node:hover .hex .ring{stroke:var(--blue)}
.smap-node .hex .halo{fill:rgba(59,155,225,.30)}
.smap-node .hex .core{fill:#E6F1F8;filter:drop-shadow(0 0 6px rgba(120,200,255,.9))}
.smap-node h3{
  grid-column:1;grid-row:1;align-self:end;margin:0;
  font-size:15.5px;font-weight:500;line-height:18px;
  letter-spacing:.02em;text-transform:uppercase;color:#E6F0F7;
}
.smap-node p{
  grid-column:1;grid-row:2;align-self:start;margin-top:5px;
  font-size:14px;font-weight:400;line-height:18px;color:var(--muted);
}

.smap-hub{
  position:absolute;left:210px;top:185px;
  width:190px;height:176px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
}
.smap-hub .outline{position:absolute;inset:0;width:190px;height:176px}
.smap-hub .outline polygon{fill:rgba(3,15,25,.42);stroke:rgba(196,214,227,.75);stroke-width:1.3}
.smap-hub .hub-lockup{position:relative;width:165px;height:auto}
.smap-hub p{
  position:relative;margin-top:14px;
  font-size:13px;font-weight:400;line-height:18px;
  text-align:center;color:var(--muted);
}

/* --------------------------------------------------------------------------
   6. Bandeau des atouts
   -------------------------------------------------------------------------- */
.assets{padding:36px 0 0;background:var(--bg)}

.assets-grid{display:grid;grid-template-columns:repeat(4,1fr)}

.asset{
  position:relative;
  display:flex;align-items:flex-start;gap:31px;
  padding:0 30px;
}
.asset+.asset::before{
  content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:1px;height:88px;background:var(--line-soft);
}
.asset-icon{flex:0 0 auto;width:64px;height:72px}
.asset-icon .ring{fill:none;stroke:var(--blue-line);stroke-width:1.8}
.asset-icon .glyph{fill:none;stroke:var(--blue);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.asset-body{padding-top:4px}
.asset h3{
  font-size:19.5px;font-weight:500;line-height:24px;
  letter-spacing:.02em;text-transform:uppercase;color:var(--white);
}
.asset p{
  margin-top:6px;
  font-size:16.5px;font-weight:400;line-height:22px;color:var(--muted);
}

/* --------------------------------------------------------------------------
   7. Signature
   -------------------------------------------------------------------------- */
.site-foot{padding:40px 0 22px;background:var(--bg)}

.foot-inner{display:flex;align-items:center;justify-content:center;gap:26px}

.foot-rule{
  height:2px;width:120px;flex:0 1 120px;min-width:24px;
  background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.24),rgba(255,255,255,0));
}

.signature{
  margin:0;flex:0 0 auto;
  font-size:15.5px;font-weight:400;line-height:1;
  letter-spacing:.05em;color:var(--dim);
}

.foot-links{display:flex;align-items:center;gap:22px;flex:0 0 auto}
.foot-links a{
  position:relative;
  font-size:15.5px;font-weight:400;line-height:1;
  letter-spacing:.02em;color:var(--dim);
  transition:color .2s ease;
}
.foot-links a::before{        /* separateur discret */
  content:"·";position:absolute;left:-13px;color:rgba(255,255,255,.22);
}
.foot-links a:hover{color:var(--blue)}

/* --------------------------------------------------------------------------
   9. Animations d'apparition
   -------------------------------------------------------------------------- */
@keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
.anim{animation:rise .8s cubic-bezier(.2,.7,.3,1) both}
.anim-1{animation-delay:.05s}
.anim-2{animation-delay:.15s}
.anim-3{animation-delay:.25s}
.anim-4{animation-delay:.32s}
.anim-5{animation-delay:.42s}
.anim-6{animation-delay:.30s}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .anim{animation:none}
  .smap-links .spark{display:none}
  *{transition-duration:.01ms !important}
}

/* --------------------------------------------------------------------------
   10. Adaptatif
   -------------------------------------------------------------------------- */
@media (max-width:1440px){
  .hero-inner{gap:48px}
}

@media (max-width:1280px){
  :root{--hero-h:770px}
  .eyebrow{font-size:38px;line-height:49px}
  .hero-title{font-size:36px;line-height:47px}
  .hero-text{font-size:19px;line-height:30px}
  .hero-inner{gap:40px}
  .no-narrow{display:none}
  .asset{padding:0 18px;gap:20px}
  .asset h3{font-size:18px;line-height:22px}
  .asset p{font-size:15.5px;line-height:20px}
}

/* Tablette : le schema passe sous le texte, menu deroulant */
@media (max-width:1119px){
  :root{--header-h:88px;--hero-h:auto}

  .hero{min-height:0}
  .hero-media{left:0;bottom:0;width:100%;height:100%;aspect-ratio:auto}
  .hero-veil::before{
    background:linear-gradient(180deg,rgba(1,3,6,.90) 0%,rgba(1,3,6,.74) 45%,rgba(1,3,6,.90) 100%);
  }
  .hero-inner{
    grid-template-columns:1fr;gap:56px;
    padding:calc(var(--header-h) + 48px) 0 64px;
  }
  .hero-copy{max-width:none;margin-bottom:0}
  .hero-socials{position:static;margin-top:12px}
  .no-mobile{display:none}

  .smap{margin:0 auto;justify-self:center;width:100%;max-width:400px;transform:none}
  .smap-canvas{height:auto;display:grid;gap:26px}
  .smap-links{display:none}
  .smap-node,.smap-hub{position:static;width:auto;height:auto}
  .smap-node{
    display:grid;grid-template-columns:auto 1fr;
    column-gap:22px;align-items:center;text-align:left;
  }
  .smap-node .hex{grid-column:1;grid-row:1 / span 2;margin:0}
  .smap-node h3{grid-column:2;grid-row:1;margin-top:0;align-self:end}
  .smap-node p{grid-column:2;grid-row:2;align-self:start}
  .smap-hub{
    align-items:center;padding:26px 20px;
    border:1px solid rgba(196,214,227,.35);
    background:rgba(3,15,25,.42);
  }
  .smap-hub .outline{display:none}
  .smap-hub .hub-lockup{width:min(230px,80%)}

  .assets{padding-top:44px}
  .assets-grid{grid-template-columns:repeat(2,1fr);row-gap:34px}
  .asset{padding:0 24px}
  .asset:nth-child(odd)::before{display:none}
  .asset:nth-child(n+3)::after{
    content:"";position:absolute;left:24px;right:24px;top:-17px;height:1px;background:var(--line-soft);
  }
}

@media (max-width:660px){
  .shell{width:min(var(--shell),100% - 32px)}
  .eyebrow{font-size:30px;line-height:38px}
  .hero-title{font-size:30px;line-height:39px}
  .hero-text{font-size:18px;line-height:29px}
  .btn-ghost{margin-top:34px;font-size:17px;padding:0 20px;height:48px}
  .assets-grid{grid-template-columns:1fr;row-gap:30px}
  .asset{padding:0;gap:20px}
  .asset::before{display:none}
  .asset:nth-child(n+2)::after{
    content:"";position:absolute;left:0;right:0;top:-15px;height:1px;background:var(--line-soft);
  }
  .foot-inner{flex-wrap:wrap;gap:14px 18px}
  .foot-rule{display:none}
  .signature{flex:1 0 100%;text-align:center;font-size:15px}
  .foot-links{flex:1 0 100%;justify-content:center;gap:20px}
  .foot-links a{font-size:14px}
  .foot-links a:first-child::before{display:none}
}

