/* Styles partagés par toutes les langues du site vitrine. */

:root {
  /* codification couleur du covering : Noir / Bordeaux / Argent */
  --bleu: #141517;
  --bleu-fonce: #0a0a0c;
  --bleu-clair: #f5eaec;
  --ambre: #7d0f22;      /* bordeaux OSE */
  --argent: #b4b7bb;
  --argent-ombre: #94989d;
  --encre: #1b1c1f;
  --encre-douce: #5c6066;
  --fond: #f7f7f8;
  --blanc: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--encre);
  background: var(--fond);
  line-height: 1.6;
}

.contenu {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* ---------- En-tête et menu ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--blanc);
  border-bottom: 1px solid #e3e9f0;
  box-shadow: 0 1px 8px rgba(16, 54, 92, 0.06);
  transition: transform 0.28s ease;
}

/* menu rétracté pendant le défilement vers le bas (voir script en pied de page) */
header.retracte {
  transform: translateY(-100%);
}

@media (prefers-reduced-motion: reduce) {
  header {
    transition: none;
  }
}

.barre {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.65rem 1.2rem;
  max-width: 1080px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.marque {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--bleu);
  margin-right: auto;
}

.marque img {
  width: 44px;
  height: auto;
  flex-shrink: 0;
}

.marque .nom {
  line-height: 1.15;
}

.marque .nom strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--ambre); /* OSE en rouge, comme sur le covering */
}

.marque .nom span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8b8e93; /* argent foncé sur fond clair */
}

nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--encre);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

nav a:hover {
  background: var(--bleu-clair);
  color: var(--bleu);
}

nav a.connexion {
  background: var(--bleu);
  color: #e8e9eb;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
}

nav a.connexion:hover {
  background: var(--bleu-fonce);
}

/* Sélecteur de langue */
.langues {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  border: 1px solid #e3e9f0;
  border-radius: 6px;
  padding: 0.1rem;
  margin-left: 0.3rem;
}

.langues a {
  padding: 0.25rem 0.55rem;
  font-size: 0.85rem;
  border-radius: 5px;
}

.langues a[aria-current="true"] {
  background: var(--bleu);
  color: #e8e9eb;
}

/* ---------- Bandeau principal ---------- */
.heros {
  background:
    /* reflet glacé : voile clair oblique sur le haut */
    linear-gradient(172deg, rgba(236, 238, 240, 0.07) 0%, rgba(236, 238, 240, 0.025) 16%, transparent 30%),
    /* vignette douce pour garder la profondeur */
    radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.3) 100%),
    /* fondu du noir vers le bordeaux OSE */
    linear-gradient(160deg, #0c0c0e 0%, #1c1013 30%, #351019 62%, #57101f 85%, var(--ambre) 110%);
  color: var(--argent);
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.heros::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -190px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(125, 15, 34, 0.28);
}

.heros .contenu {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.heros .contenu.heros-disposition {
  max-width: 1080px;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.heros-visuel {
  width: min(460px, 42vw);
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35));
}

.heros-photo {
  width: min(600px, 48vw);
  /* véhicule détouré : il flotte sur le noir du bandeau, immobile */
}

.cadre-vehicule {
  position: relative;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 22px 34px rgba(0, 0, 0, 0.55);
}

.cadre-vehicule img,
.cadre-vehicule video {
  display: block;
  width: 100%;
  height: auto;
}

/* large nappe de lumière qui glisse sur la photo */
.cadre-vehicule::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 12%,
    rgba(214, 217, 221, 0.08) 30%,
    rgba(236, 238, 240, 0.22) 50%,
    rgba(214, 217, 221, 0.08) 70%,
    transparent 88%
  );
  background-size: 260% 100%;
  background-position: 130% 0;
  mix-blend-mode: screen;
  animation: phares-balayent 7s ease-in-out infinite 1.2s;
  pointer-events: none;
}

@keyframes phares-balayent {
  0%, 40% { background-position: 130% 0; }
  78%, 100% { background-position: -130% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cadre-vehicule::after { animation: none; opacity: 0; }
}

@media (max-width: 820px) {
  .heros-anim {
    width: min(420px, 88vw);
    align-self: center;
  }
}

@media (max-width: 820px) {
  .heros .contenu.heros-disposition {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  .heros-visuel {
    width: min(420px, 88vw);
    align-self: center;
  }
}

.heros .surtitre {
  color: var(--argent-ombre);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.heros h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.7rem);
  line-height: 1.2;
  margin: 0.7rem 0 1rem;
  position: relative;
  background: linear-gradient(115deg, #767b82 0%, #d8dadd 22%, #8f939a 45%, #e6e8ea 68%, #767b82 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
  animation: reflet-argent 7s ease-in-out infinite;
}

/* éclats pétillants sur l'argent */
.heros h1::before,
.heros h1::after,
.bande-sombre h2::after {
  content: "✦";
  position: absolute;
  color: #eceef0;
  -webkit-text-fill-color: #eceef0;
  opacity: 0;
  pointer-events: none;
  filter: none;
}

.heros h1::before {
  top: -0.4em;
  right: 6%;
  font-size: 0.5em;
  animation: scintille 3.6s ease-in-out infinite 0.8s;
}

.heros h1::after {
  bottom: -0.3em;
  left: 3%;
  font-size: 0.34em;
  animation: scintille 4.4s ease-in-out infinite 2.4s;
}

.bande-sombre h2 {
  position: relative;
  display: inline-block;
}

.bande-sombre h2::after {
  top: -0.45em;
  right: -1em;
  font-size: 0.5em;
  animation: scintille 3.9s ease-in-out infinite 1.5s;
}

@keyframes reflet-argent {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes scintille {
  0%, 100% { opacity: 0; transform: scale(0.35) rotate(-10deg); }
  50% { opacity: 1; transform: scale(1) rotate(15deg); }
}

@media (prefers-reduced-motion: reduce) {
  .heros h1,
  .bande-sombre h2 {
    animation: none;
  }
  .heros h1::before,
  .heros h1::after,
  .bande-sombre h2::after {
    animation: none;
    opacity: 0;
  }
}

.heros p {
  font-size: 1.08rem;
  color: var(--argent);
  max-width: 38rem;
}

.badge-covering {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.45rem 0.9rem;
  border: 1.5px solid #9c1830;
  border-radius: 8px;
  color: var(--argent-ombre) !important;
  font-weight: 600;
}

.heros .actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.bouton {
  display: inline-block;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
}

.bouton.principal {
  background: var(--ambre);
  color: #d8dadd;
}

.bouton.principal:hover {
  background: #9c1830;
}

.bouton.secondaire {
  border: 1.5px solid rgba(201, 203, 206, 0.55);
  color: var(--argent);
}

.bouton.secondaire:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Sections ---------- */
section {
  padding: 3.8rem 0;
}

section h2 {
  font-size: 1.7rem;
  color: var(--bleu);
  margin-bottom: 0.4rem;
}

section .sous-titre {
  color: var(--encre-douce);
  max-width: 42rem;
  margin-bottom: 2.2rem;
}

.cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.carte {
  background: var(--blanc);
  border: 1px solid #e3e9f0;
  border-radius: 12px;
  padding: 1.6rem;
  box-shadow: 0 2px 10px rgba(16, 54, 92, 0.05);
}

.carte .picto {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--bleu-clair);
  color: var(--bleu);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.carte h3 {
  color: var(--bleu);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.carte p {
  color: var(--encre-douce);
  font-size: 0.95rem;
}

.bande-sombre {
  background: var(--bleu);
  color: var(--argent);
}

.bande-sombre h2 {
  background: linear-gradient(115deg, #767b82 0%, #d8dadd 22%, #8f939a 45%, #e6e8ea 68%, #767b82 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
  animation: reflet-argent 7s ease-in-out infinite;
}

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
  margin-top: 1.8rem;
}

.points strong {
  display: block;
  color: var(--argent);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.3rem;
}

.points p {
  color: #8f9298;
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */
.contact-cadre {
  background: var(--blanc);
  border: 1px solid #e3e9f0;
  border-left: 5px solid var(--ambre);
  border-radius: 12px;
  padding: 1.8rem;
  max-width: 42rem;
}

.contact-cadre p + p {
  margin-top: 0.6rem;
}

/* Coordonnées (téléphone, e-mail, adresse…) renseignées depuis l'application */
.contact-infos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.9rem;
  max-width: 42rem;
  margin-top: 1rem;
}

.contact-infos:empty {
  display: none;
}

.contact-info {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  background: var(--blanc);
  border: 1px solid #e3e9f0;
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
}

.contact-info .picto {
  font-size: 1.1rem;
}

.contact-info strong {
  color: var(--bleu);
}

.contact-info a {
  color: var(--ambre);
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Formulaire de contact */
.contact-formulaire {
  background: var(--blanc);
  border: 1px solid #e3e9f0;
  border-radius: 12px;
  padding: 1.8rem;
  max-width: 42rem;
  margin-top: 1rem;
}

.contact-formulaire h3 {
  margin-bottom: 1rem;
}

.contact-formulaire label {
  display: block;
  font-weight: 600;
  color: var(--bleu);
  font-size: 0.9rem;
  margin-top: 0.9rem;
}

.contact-formulaire input,
.contact-formulaire textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #cfd6de;
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
}

.contact-formulaire input:focus,
.contact-formulaire textarea:focus {
  outline: 2px solid var(--ambre);
  outline-offset: 1px;
  border-color: var(--ambre);
}

.champs-ligne {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0 1rem;
}

/* pot de miel anti-robots : hors écran, jamais rempli par un humain */
.champ-entreprise {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-envoi {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.contact-retour {
  font-size: 0.9rem;
}

.contact-retour.succes {
  color: #1d7a3d;
  font-weight: 600;
}

.contact-retour.erreur {
  color: var(--ambre);
  font-weight: 600;
}

footer {
  background: var(--bleu-fonce);
  color: #9a9da2;
  padding: 1.6rem 0;
  font-size: 0.85rem;
}

footer .contenu {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer a {
  color: var(--argent);
}

/* ---------- En-tête compact aux petites résolutions ---------- */
@media (max-width: 900px) {
  .barre {
    gap: 0.6rem 1rem;
    padding: 0.5rem 0.9rem;
  }
  nav {
    gap: 0.15rem;
  }
  nav a {
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
  }
  nav a.connexion {
    padding: 0.35rem 0.8rem;
  }
  .marque img {
    width: 38px;
  }
  .marque .nom strong {
    font-size: 1.15rem;
  }
  .marque .nom span {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
  }
}

@media (max-width: 640px) {
  .barre {
    gap: 0.35rem 0.6rem;
    padding: 0.4rem 0.7rem;
  }
  .marque {
    gap: 0.5rem;
  }
  .marque img {
    width: 32px;
  }
  .marque .nom strong {
    font-size: 1.05rem;
  }
  /* le sous-titre disparaît : le nom complet reste dans le bandeau principal */
  .marque .nom span {
    display: none;
  }
  /* le menu occupe sa propre ligne, répartie sur toute la largeur */
  nav {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }
  nav a {
    font-size: 0.78rem;
    padding: 0.3rem 0.45rem;
  }
  nav a.connexion {
    padding: 0.3rem 0.6rem;
  }
  .langues {
    margin-left: 0;
  }
  .langues a {
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 420px) {
  nav a {
    font-size: 0.72rem;
    padding: 0.28rem 0.3rem;
  }
  nav a.connexion {
    padding: 0.28rem 0.45rem;
  }
}


.champ-captcha .captcha-visuel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.3rem 0;
}

.champ-captcha img {
  border: 1px solid #cfd6de;
  border-radius: 8px;
  background: white;
}

.captcha-rafraichir {
  font-size: 1.3rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid #cfd6de;
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

/* mentions légales : page de texte, lisible et sobre */
.page-legale main { max-width: 46rem; padding: 3rem 1.5rem 5rem; }
.texte-legal h1 { font-size: 2rem; margin-bottom: 1.5rem; }
.texte-legal h2 { font-size: 1.15rem; margin: 2rem 0 .6rem; color: var(--bordeaux, #7d0f22); }
.texte-legal dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.5rem; margin: 0; }
.texte-legal dt { color: #8b8279; font-size: .9rem; }
.texte-legal dd { margin: 0; }
