/* ==========================================================================
   Woorooz Holding : one-pager
   Palette
     --foret   #0a3325  fond sombre principal
     --lagune  #14574a  fond sombre secondaire
     --orange  #f28a1e  accent (orange du drapeau ivoirien)
     --or      #e9c46a  accent immobilier
     --menthe  #5fd6b3  accent technologie
     --craie   #f2f5f1  fond clair
   Typographie
     Titres : Bricolage Grotesque (variable)
     Texte  : Instrument Sans (variable)
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --foret: #0a3325;
  --foret-profond: #072219;
  --lagune: #14574a;
  --orange: #f28a1e;
  --orange-clair: #ffa13d;
  --or: #e9c46a;
  --menthe: #5fd6b3;
  --craie: #f2f5f1;
  --blanc: #ffffff;
  --encre: #11261d;
  --encre-douce: #3c5248;
  --trait: #cfd9d2;
  --focus: #5fd6b3;

  --titre: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --texte: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --largeur: 1180px;
  --gouttiere: clamp(1.25rem, 4vw, 2.5rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--craie);
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; max-width: 62ch; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

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

.entites, .contact { --focus: #0b6a52; }

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--blanc);
  color: var(--foret);
  font-weight: 600;
  border-radius: 6px;
}
.skip:focus { top: 1rem; }

/* ---------- Bandeau de statut ---------- */

.statut {
  max-width: none;
  padding: .45rem var(--gouttiere);
  text-align: center;
  font-size: .875rem;
  font-weight: 600;
  background: var(--orange);
  color: var(--foret);
}

/* ---------- En-tête et navigation ---------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--foret);
  color: var(--craie);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.entete__interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding: .75rem var(--gouttiere);
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--titre);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--blanc);
}
.marque__signe { width: 30px; height: 30px; color: var(--blanc); }

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}

.nav a {
  display: block;
  padding: .55rem .85rem;
  font-weight: 500;
  font-size: .98rem;
  color: #d8e5de;
  text-decoration: none;
  border-radius: 4px;
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: var(--blanc); background: rgba(255, 255, 255, .08); }
.nav a[aria-current="page"] {
  color: var(--blanc);
  font-weight: 600;
  box-shadow: inset 0 -3px 0 var(--orange);
  border-radius: 4px 4px 0 0;
}

.menu-bouton { display: none; }

@media (max-width: 880px) {
  .js .menu-bouton {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .9rem;
    font: inherit;
    font-weight: 600;
    color: var(--blanc);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .45);
    border-radius: 6px;
    cursor: pointer;
  }
  .menu-bouton__barres,
  .menu-bouton__barres::before {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    content: "";
  }
  .menu-bouton__barres { position: relative; }
  .menu-bouton__barres::before { position: absolute; top: -6px; left: 0; width: 18px; }
  .menu-bouton__barres::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
  }

  .entete__interieur { flex-wrap: wrap; }
  .js .nav { display: none; width: 100%; }
  .js .nav.nav--ouvert { display: block; }
  .nav ul { flex-direction: column; padding: .5rem 0 .75rem; }
  .nav a { padding: .8rem .5rem; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--orange); padding-left: 1rem; border-radius: 0 4px 4px 0; }
}

/* ---------- Accueil ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--craie);
  background-color: var(--foret);
  /* trame de plan d'architecte, très discrète */
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero__interieur {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gouttiere) clamp(3rem, 7vw, 5.5rem);
}

@media (min-width: 900px) {
  .hero__interieur { grid-template-columns: 1.05fr 1fr; }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  color: var(--blanc);
}

.hero__intro {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: #d3e2da;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
}

.bouton {
  display: inline-block;
  padding: .85rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.bouton--plein { background: var(--orange); color: var(--foret); }
.bouton--plein:hover { background: var(--orange-clair); }
.bouton--contour { color: var(--blanc); border-color: rgba(255, 255, 255, .5); }
.bouton--contour:hover { border-color: var(--blanc); background: rgba(255, 255, 255, .06); }

/* ---------- Illustration du chantier (le seul moment animé de la page) ---------- */

.chantier { margin: 0; }
.chantier svg { width: 100%; height: auto; overflow: visible; }

.trait {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: dessin 1.5s cubic-bezier(.4, .1, .2, 1) forwards;
  animation-delay: var(--d, 0s);
}

.trait--sol      { stroke: rgba(242, 245, 241, .45); stroke-width: 2; }
.trait--mur      { stroke: var(--craie); stroke-width: 2.6; }
.trait--fin      { stroke: rgba(242, 245, 241, .5); stroke-width: 1.5; }
.trait--chantier { stroke: var(--orange); stroke-width: 3.2; }
.trait--repere   { stroke: var(--or); stroke-width: 3.2; }
.trait--reseau   { stroke: var(--menthe); stroke-width: 2.2; }

.groupe--immo .trait--mur { stroke: var(--or); }

.noeuds circle {
  fill: var(--foret);
  stroke: var(--menthe);
  stroke-width: 2.4;
  opacity: 0;
  animation: apparition .5s ease forwards 2.6s;
}

@keyframes dessin { to { stroke-dashoffset: 0; } }
@keyframes apparition { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trait { animation: none; stroke-dashoffset: 0; }
  .noeuds circle { animation: none; opacity: 1; }
}

/* ---------- Entités ---------- */

.entites {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background: var(--craie);
}

.entites__entete {
  display: grid;
  gap: 1rem 3rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 900px) {
  .entites__entete { grid-template-columns: 1fr 1fr; align-items: end; }
}
.entites h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.entites__entete p { color: var(--encre-douce); }

.liste-entites { border-bottom: 1px solid var(--trait); }

.entite {
  --accent: var(--orange);
  --accent-texte: #9a4e00;
  display: grid;
  gap: 1.25rem 2rem;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(1.5rem, 3vw, 2.25rem) clamp(1.1rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--trait);
  border-left: 8px solid var(--accent);
  transition: background-color .2s ease;
}
.entite:hover { background: var(--blanc); }
.entite--immo { --accent: #e0b43d; --accent-texte: #6b5200; }
.entite--tech { --accent: #34c39b; --accent-texte: #0b6a52; }

@media (min-width: 820px) {
  .entite { grid-template-columns: 1fr 18.5rem; padding-right: clamp(1rem, 2.5vw, 1.75rem); }
}

.entite h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.entite__metier {
  margin: .35rem 0 .6rem;
  font-weight: 700;
  color: var(--accent-texte);
}
.entite__corps p:last-child { color: var(--encre-douce); max-width: 56ch; }

.entite__lien {
  display: inline-flex;
  flex-direction: column;
  gap: .15rem;
  width: 100%;
  padding: .85rem 1.25rem;
  text-decoration: none;
  color: var(--foret);
  background: var(--blanc);
  border: 2px solid var(--foret);
  border-radius: 6px;
  transition: background-color .15s ease, color .15s ease;
}
.entite__lien span { font-weight: 700; }
.entite__lien small { font-size: .85rem; color: var(--encre-douce); transition: color .15s ease; }
.entite__lien:hover { background: var(--foret); color: var(--blanc); }
.entite__lien:hover small { color: #c5d8cf; }

/* ---------- Bandeau du groupe (photo libre de droits facultative) ---------- */

.bandeau {
  color: var(--craie);
  background-color: var(--lagune);
  background-image:
    linear-gradient(rgba(10, 51, 37, .82), rgba(10, 51, 37, .9)),
    url("../images/bandeau.jpg"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M0 32 L16 16 L32 32 L48 16 L64 32 M0 64 L16 48 L32 64 L48 48 L64 64 M0 0 L16 16 M32 0 L48 16 L64 0' fill='none' stroke='%235fd6b3' stroke-opacity='.55' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: auto, cover, 64px 64px;
  background-position: center, center, 0 0;
  background-repeat: no-repeat, no-repeat, repeat;
}

.bandeau__interieur {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.bandeau h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: var(--blanc);
}

.principes {
  display: grid;
  gap: 2rem 2.5rem;
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
}
@media (min-width: 820px) {
  .principes { grid-template-columns: repeat(3, 1fr); }
}
.principes div { padding-top: 1.1rem; border-top: 3px solid var(--orange); }
.principes dt {
  font-family: var(--titre);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--blanc);
}
.principes dd { margin: .5rem 0 0; color: #d3e2da; max-width: 36ch; }

/* ---------- Contact ---------- */

.contact {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: var(--craie);
}

.contact__interieur {
  display: grid;
  gap: 2.5rem 4rem;
  align-items: center;
}
@media (min-width: 900px) {
  .contact__interieur { grid-template-columns: 1.2fr 1fr; }
}

.contact h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 1.1rem; }
.contact__interieur > div:first-child p { color: var(--encre-douce); }

.contact__carte {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--craie);
  background: var(--foret);
  border-left: 8px solid var(--orange);
  border-radius: 0 8px 8px 0;
}
.contact__titre { font-weight: 600; color: #bcd3c8; }
.contact__mail {
  display: inline-block;
  margin: .4rem 0 .9rem;
  font-family: var(--titre);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--blanc);
  text-decoration-color: var(--orange);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}
.contact__mail:hover { color: var(--orange); }
.contact__carte :focus-visible { outline-color: var(--menthe); }
.contact__lieu { color: #bcd3c8; }

/* ---------- Pied de page ---------- */

.pied {
  padding-block: 1.75rem;
  color: #b4cbc0;
  background: var(--foret-profond);
  font-size: .95rem;
}
.pied__interieur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
}
.pied ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.pied a { color: #dbe8e1; text-underline-offset: 4px; }
.pied a:hover { color: var(--orange); }
.pied :focus-visible { outline-color: var(--menthe); }
