/* =========================================================================
   SECU-SITE — site vitrine
   Une seule feuille de style, aucune dépendance externe : la page s'ouvre
   par double-clic et se déploie sur n'importe quel hébergement statique.
   ========================================================================= */

:root {
  /* Charte : encre de la maquette + or d'accent. Le teal de la marque reste
     l'accent « état » (indicateurs, puces de statut). */
  --encre: #0b1b2e;
  --encre-2: #122740;
  --encre-3: #1b3151;
  --or: #c9a44c;
  --or-clair: #e0be6c;
  --teal: #0f7a63;
  --teal-clair: #17a183;
  --alerte: #d24236;

  --papier: #ffffff;
  --papier-2: #f7f8fa;
  --papier-3: #eef1f5;
  --texte: #1b2432;
  --texte-2: #5a6678;
  --bord: #e2e7ee;

  --rayon: 12px;
  --rayon-l: 18px;
  --ombre: 0 1px 2px rgba(11, 27, 46, .06), 0 8px 24px rgba(11, 27, 46, .06);
  --ombre-forte: 0 18px 50px rgba(11, 27, 46, .18);
  --largeur: 1200px;
  --gouttiere: 24px;
  --transition: 180ms ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--texte);
  background: var(--papier);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

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

/* ---------- Utilitaires ---------- */
.surtitre {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: .9rem;
}
.sombre .surtitre { color: var(--or-clair); }
.chapo { color: var(--texte-2); font-size: 1.02rem; max-width: 60ch; }
.sombre .chapo { color: rgba(255, 255, 255, .72); }
.accent { color: var(--or); }

.section { padding-block: clamp(56px, 8vw, 96px); }
.section--clair { background: var(--papier-2); }
.sombre { background: var(--encre); color: #fff; }
.sombre h2, .sombre h3 { color: #fff; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .78rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.bouton:hover { transform: translateY(-1px); }
.bouton:focus-visible { outline: 3px solid var(--or-clair); outline-offset: 2px; }
.bouton--or { background: var(--or); color: var(--encre); }
.bouton--or:hover { background: var(--or-clair); }
.bouton--fantome { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.bouton--fantome:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.bouton--contour { background: transparent; color: var(--encre); border-color: var(--or); }
.bouton--contour:hover { background: rgba(201, 164, 76, .12); }
.bouton--large { width: 100%; justify-content: center; }
.fleche { transition: transform var(--transition); }
.bouton:hover .fleche { transform: translateX(3px); }

/* ---------- En-tête ---------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 27, 46, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.logo { display: flex; align-items: center; gap: .7rem; }
.logo img { height: 36px; width: 36px; display: block; }
.logo__texte { display: flex; flex-direction: column; line-height: 1.1; }
.logo__nom { color: #fff; font-weight: 700; letter-spacing: .08em; font-size: 1.05rem; }
.logo__signature { color: rgba(255, 255, 255, .55); font-size: .68rem; letter-spacing: .05em; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  color: rgba(255, 255, 255, .78);
  font-size: .93rem;
  padding-block: .4rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav a:hover { color: #fff; }
.nav a.actif { color: #fff; border-bottom-color: var(--or); }

.entete__actions { display: flex; align-items: center; gap: .75rem; }

.burger {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 10px;
  padding: .5rem .6rem;
  cursor: pointer;
}
.burger span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px 0; transition: transform var(--transition), opacity var(--transition); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 520px at 78% 18%, rgba(23, 161, 131, .20), transparent 62%),
    radial-gradient(760px 420px at 8% 92%, rgba(201, 164, 76, .14), transparent 60%),
    var(--encre);
  color: #fff;
  padding-block: clamp(48px, 7vw, 84px);
  overflow: hidden;
}
.hero__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.hero h1 { margin-bottom: .5em; text-wrap: balance; }
.hero h1 .accent { color: var(--or-clair); display: block; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

.points {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.6rem;
  margin-top: clamp(32px, 5vw, 52px);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  list-style: none;
  padding-left: 0;
}
.points li { display: flex; align-items: center; gap: .55rem; font-size: .88rem; color: rgba(255, 255, 255, .82); }
.points svg { flex: none; color: var(--or-clair); }

/* Visuel du hero : la photo, si elle est là, masque le dessin vectoriel qui la
   suit. Quand le fichier manque, le script `onerror` retire l'image, le dessin
   redevient le premier enfant — et s'affiche. Aucune bascule à gérer à la main. */
.visuel { margin: 0; }
.visuel img {
  display: block;
  width: 100%;
  /* Le fichier fourni est une découpe qui inclut une ligne de texte en bas :
     on la coupe par le cadrage plutôt qu'en retouchant l'image. */
  aspect-ratio: 754 / 288;
  height: auto;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--rayon-l);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: var(--ombre-forte);
}
.visuel img + .console { display: none; }

.console {
  border-radius: var(--rayon-l);
  box-shadow: var(--ombre-forte);
  border: 1px solid rgba(255, 255, 255, .12);
  overflow: hidden;
  background: #0d2138;
}
.console svg { display: block; width: 100%; height: auto; }

/* ---------- Bandeau de chiffres ---------- */
.bandeau { background: var(--encre-2); color: #fff; padding-block: 28px; }
.bandeau__grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; text-align: center; }
.bandeau strong { display: block; font-size: 1.7rem; color: var(--or-clair); line-height: 1.2; }
.bandeau span { font-size: .82rem; color: rgba(255, 255, 255, .7); }

/* ---------- Grilles de contenu ---------- */
.deux-colonnes {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.trait { width: 56px; height: 3px; background: var(--or); border-radius: 2px; margin-top: 1.6rem; }

.atouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 2.2rem; }
.atout { display: flex; gap: 1rem; }
.pastille {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--papier-3);
  color: var(--encre-2);
}
.sombre .pastille { background: rgba(255, 255, 255, .08); color: var(--or-clair); }
.atout h3 { margin-bottom: .25em; }
.atout p { color: var(--texte-2); font-size: .92rem; margin: 0; }
.sombre .atout p { color: rgba(255, 255, 255, .7); }

/* ---------- Fonctionnalités ---------- */
.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
  margin-top: 2.6rem;
}
.module {
  background: var(--papier);
  border: 1px solid var(--bord);
  border-radius: var(--rayon-l);
  padding: 1.6rem;
  box-shadow: var(--ombre);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.module:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); border-color: rgba(201, 164, 76, .55); }
.module__tete { display: flex; align-items: center; gap: .8rem; margin-bottom: .9rem; }
.module__tete .pastille { background: var(--encre); color: var(--or-clair); }
.module h3 { margin: 0; }
.module p { color: var(--texte-2); font-size: .93rem; }
.module ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.module li { position: relative; padding-left: 1.35rem; font-size: .89rem; color: var(--texte-2); }
.module li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-clair);
}
.etiquette {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(23, 161, 131, .12);
  border-radius: 999px;
  padding: .2rem .6rem;
  margin-bottom: .8rem;
}

/* ---------- Secteurs ---------- */
/* Bandeau produit pleine largeur, entre le chapeau et les modules. */
.bande-photo {
  /* Largeur bornee a la definition native du fichier : au-dela, l'agrandissement
     se voit. A remplacer par 100% le jour ou une image plus large est fournie. */
  max-width: 560px;
  margin: 2.6rem auto 0;
  border-radius: var(--rayon-l);
  overflow: hidden;
  box-shadow: var(--ombre);
  border: 1px solid var(--bord);
}
.bande-photo img { display: block; width: 100%; height: auto; }

.secteurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.secteur {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--rayon-l);
  padding: 1.5rem;
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
}
/* La photo déborde du rembourrage de la carte pour toucher ses bords hauts. */
.secteur__photo {
  margin: -1.5rem -1.5rem 1.2rem;
  aspect-ratio: 16 / 10;
  max-width: calc(100% + 3rem);
  overflow: hidden;
}
.secteur__photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  /* Léger agrandissement : les découpes gardent un liseré sombre sur les bords,
     que ce débord fait sortir du cadre. */
  transform: scale(1.1);
}
.secteur:hover { border-color: var(--or); background: rgba(255, 255, 255, .08); }
.secteur h3 { display: flex; align-items: center; gap: .6rem; font-size: 1rem; }
.secteur h3 svg { color: var(--or-clair); flex: none; }
.secteur p { color: rgba(255, 255, 255, .7); font-size: .89rem; margin: 0; }

/* ---------- Offres ---------- */
.offres { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 2.6rem; }
.offre {
  position: relative;
  background: var(--papier);
  border: 1px solid var(--bord);
  border-radius: var(--rayon-l);
  padding: 1.7rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ombre);
}
.offre--vedette { border-color: var(--or); box-shadow: 0 0 0 3px rgba(201, 164, 76, .18), var(--ombre-forte); }
.offre__ruban {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--or);
  color: var(--encre);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .85rem;
  border-radius: 999px;
  white-space: nowrap;
}
.offre h3 { margin-bottom: .1em; }
.offre__cible { color: var(--texte-2); font-size: .85rem; margin-bottom: 1.1rem; }
.offre__prix { font-size: 1.5rem; font-weight: 700; color: var(--encre-2); line-height: 1.15; }
.offre__prix small { display: block; font-size: .8rem; font-weight: 400; color: var(--texte-2); margin-top: .25rem; }
.offre ul { list-style: none; margin: 1.2rem 0 1.6rem; padding: 0; display: grid; gap: .5rem; }
.offre li { display: flex; gap: .55rem; font-size: .88rem; color: var(--texte-2); }
.offre li svg { flex: none; color: var(--teal); margin-top: .18rem; }
.offre .bouton { margin-top: auto; }
.note-offres { margin-top: 1.6rem; font-size: .85rem; color: var(--texte-2); }

/* ---------- Contact ---------- */
.contact__grille { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.coordonnees { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1rem; }
.coordonnees li { display: flex; gap: .8rem; align-items: flex-start; font-size: .93rem; color: rgba(255, 255, 255, .8); }
.coordonnees svg { flex: none; color: var(--or-clair); margin-top: .2rem; }

.formulaire {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--rayon-l);
  padding: clamp(20px, 3vw, 30px);
  display: grid;
  gap: 1rem;
}
.champ { display: grid; gap: .35rem; }
.champ label { font-size: .82rem; color: rgba(255, 255, 255, .78); font-weight: 600; }
.champ input, .champ textarea, .champ select {
  font: inherit;
  color: #fff;
  background: rgba(11, 27, 46, .6);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  padding: .7rem .85rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.champ input:focus, .champ textarea:focus, .champ select:focus {
  outline: none;
  border-color: var(--or);
  box-shadow: 0 0 0 3px rgba(201, 164, 76, .22);
}
.champ textarea { resize: vertical; min-height: 110px; }
.champ select option { color: #1b2432; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.mention { font-size: .78rem; color: rgba(255, 255, 255, .55); margin: 0; }
.retour {
  border-radius: 10px;
  padding: .8rem 1rem;
  font-size: .88rem;
  background: rgba(23, 161, 131, .16);
  border: 1px solid rgba(23, 161, 131, .5);
  color: #d6f5ec;
}
.retour[hidden] { display: none; }

/* ---------- Pied de page ---------- */
.pied { background: #081524; color: rgba(255, 255, 255, .62); padding-block: 40px 28px; }
.pied__haut { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.pied nav { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .88rem; }
.pied nav a:hover { color: #fff; }
.pied__bas {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  font-size: .8rem;
}

/* ---------- Apparition au défilement ---------- */
.apparait { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.apparait.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .apparait { opacity: 1; transform: none; transition: none; }
  .bouton:hover, .module:hover { transform: none; }
}

/* ---------- Adaptation aux petits écrans ---------- */
@media (max-width: 1000px) {
  .hero__grille, .deux-colonnes, .contact__grille { grid-template-columns: minmax(0, 1fr); }
  .console { order: -1; }
  .bandeau__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--encre);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    padding: .5rem var(--gouttiere) 1rem;
  }
  .nav[hidden] { display: none; }
  .nav a { padding-block: .8rem; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .nav a.actif { border-bottom-color: var(--or); }
  .entete__barre { position: relative; }
  .entete__actions .bouton--or { display: none; }
}

@media (max-width: 640px) {
  .atouts, .duo { grid-template-columns: minmax(0, 1fr); }
  .points { gap: .9rem 1.4rem; }
  .logo__signature { display: none; }
}
