/* =====================================================================
   Trust Co. — feuille de style du site
   Couleurs et typographie alignées sur le logiciel de gestion.
   ===================================================================== */

:root {
  /* Couleurs de marque, identiques à celles du logiciel Trust Co. ERP */
  --navy: #144b86;
  --navy-dark: #0f3a68;
  --navy-light: #2a6bb0;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --surface: #ffffff;
  --text: #14202b;
  --text-muted: #6b7684;
  --border: #e2e6ea;
  --good: #16824a;

  --largeur: 1140px;
  --rayon: 10px;
  --ombre: 0 1px 3px rgba(20, 32, 43, .06), 0 8px 24px rgba(20, 32, 43, .05);
  --transition: .22s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }

body {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy-dark); }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.1rem; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }

.section-entete { max-width: 680px; margin-bottom: 48px; }
.surtitre {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 12px;
}
.section-entete p { color: var(--text-muted); margin-top: 14px; font-size: 1.02rem; }

/* ---------------------------------------------------------------- Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px;
  border-radius: var(--rayon); font-weight: 500; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: all var(--transition);
  font-family: inherit;
}
.btn--primaire { background: var(--navy); color: #fff; }
.btn--primaire:hover { background: var(--navy-dark); color: #fff; transform: translateY(-1px); }
.btn--secondaire { background: transparent; color: var(--navy); border-color: var(--border); }
.btn--secondaire:hover { border-color: var(--navy); background: rgba(20, 75, 134, .04); }
.btn--clair { background: #fff; color: var(--navy); }
.btn--clair:hover { background: #f0f4f8; color: var(--navy-dark); }

/* ----------------------------------------------------------- En-tête fixe */
.entete {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: all var(--transition);
}
.entete--defile { border-bottom-color: var(--border); box-shadow: 0 1px 12px rgba(20, 32, 43, .05); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 18px; }

.marque { display: flex; align-items: center; gap: 12px; }
.marque { flex: 0 0 auto; min-width: 0; }
.marque img { width: 32px; height: 32px; object-fit: contain; }
.marque-texte strong { font-size: .98rem; white-space: nowrap; }
.marque-texte span { font-size: .64rem; }
.marque-texte strong { display: block; font-size: 1.05rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.marque-texte span { font-size: .7rem; color: var(--text-muted); letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; justify-content: flex-end; }
.nav a {
  font-size: .87rem; color: var(--text); font-weight: 500; padding: 7px 11px; white-space: nowrap;
  border-radius: 8px; transition: color var(--transition), background var(--transition);
}
.nav a:hover, .nav a:focus-visible {
  color: var(--navy-dark);            /* texte foncé sur fond clair : toujours lisible */
  background: rgba(20, 75, 134, .08);
}
.nav a.btn--primaire:hover { color: #fff; background: var(--navy-dark); }
.nav .btn { padding: 9px 16px; font-size: .87rem; margin-left: 6px; }

.burger {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
  color: var(--text);
}

/* ------------------------------------------------------------- Couverture */
.hero { padding: 176px 0 96px; background: linear-gradient(180deg, #f7f9fb 0%, #fff 100%); }
.hero-grille { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero .accroche { color: var(--text-muted); font-size: 1.1rem; margin-top: 22px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-reperes { display: flex; gap: 36px; margin-top: 52px; flex-wrap: wrap; }
.repere strong { display: block; font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.repere span { font-size: .84rem; color: var(--text-muted); }

.hero-visuel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 32px; box-shadow: var(--ombre);
}
.hero-visuel img { width: 92px; height: 92px; margin: 0 auto 20px; }
.hero-visuel h3 { text-align: center; margin-bottom: 6px; }
.hero-visuel .devise { text-align: center; color: var(--text-muted); font-size: .85rem; margin-bottom: 24px; }
.hero-liste { list-style: none; display: grid; gap: 12px; }
.hero-liste li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text-muted); }
.hero-liste svg { flex-shrink: 0; margin-top: 3px; color: var(--good); }

/* --------------------------------------------------------------- Services */
.grille { display: grid; gap: 24px; }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.grille--4 { grid-template-columns: repeat(4, 1fr); }
.grille--2 { grid-template-columns: repeat(2, 1fr); }

.carte {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--rayon);
  padding: 32px 28px; transition: all var(--transition);
}
.carte:hover { border-color: var(--navy-light); box-shadow: var(--ombre); transform: translateY(-2px); }
.carte-icone {
  width: 46px; height: 46px; border-radius: 10px; background: rgba(20, 75, 134, .08);
  display: flex; align-items: center; justify-content: center; color: var(--navy); margin-bottom: 20px;
}
.carte h3 { margin-bottom: 10px; }
.carte p { color: var(--text-muted); font-size: .93rem; }
.carte ul { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.carte li { font-size: .88rem; color: var(--text-muted); padding-left: 16px; position: relative; }
.carte li::before { content: ''; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--navy-light); }

/* ------------------------------------------------------------------- ERP */
.erp { background: var(--navy); color: #fff; }
.erp .surtitre { color: #9fc2e6; }
.erp h2 { color: #fff; }
.erp p { color: rgba(255, 255, 255, .8); }
.erp-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.erp-liste { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.erp-liste li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: rgba(255, 255, 255, .88); }
.erp-liste svg { flex-shrink: 0; margin-top: 4px; color: #7fd4a4; }
.erp-encart {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px; padding: 30px;
}
.erp-encart h3 { color: #fff; margin-bottom: 18px; font-size: 1rem; }
.erp-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.erp-chiffre strong { display: block; font-size: 1.5rem; font-weight: 700; color: #fff; }
.erp-chiffre span { font-size: .8rem; color: rgba(255, 255, 255, .7); }

/* --------------------------------------------------------------- Démarche */
.etape { display: flex; gap: 20px; align-items: flex-start; }
.etape-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 600;
}
.etape h3 { margin-bottom: 6px; }
.etape p { color: var(--text-muted); font-size: .92rem; }

/* --------------------------------------------------------------- Contact */
.contact-grille { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; }
.coord { display: grid; gap: 22px; margin-top: 30px; }
.coord-item { display: flex; gap: 14px; align-items: flex-start; }
.coord-item svg { color: var(--navy); flex-shrink: 0; margin-top: 3px; }
.coord-item strong { display: block; font-size: .82rem; color: var(--text-muted); font-weight: 500; }
.coord-item a, .coord-item span { font-size: .98rem; color: var(--text); }

.formulaire { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rayon); padding: 34px; }
.champ { margin-bottom: 20px; }
.champ label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 7px; }
.champ input, .champ select, .champ textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: .94rem; color: var(--text); background: #fff;
  transition: border-color var(--transition);
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20, 75, 134, .08);
}
.champ textarea { resize: vertical; min-height: 128px; }
.champ-double { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mention { font-size: .78rem; color: var(--text-muted); margin-top: 14px; }

/* ------------------------------------------------------------------- Pied */
.pied {
  /* Pied de page dans le bleu de la marque plutôt qu'un noir neutre :
     l'ensemble de la page reste dans une seule famille de couleurs. */
  background: linear-gradient(180deg, var(--navy-dark) 0%, #0c2f55 100%);
  color: rgba(255, 255, 255, .78); padding: 64px 0 0; font-size: .9rem;
  border-top: 3px solid var(--navy-light);
}
.pied-grille {
  display: grid;
  /* Cinq colonnes : la marque, puis quatre rubriques. Sans cette déclaration,
     la dernière passait à la ligne et laissait un grand vide. */
  grid-template-columns: 1.7fr 1fr 1.05fr 1.15fr 1.3fr;
  gap: 38px; padding-bottom: 46px; align-items: start;
}
.pied-grille > div { min-width: 0; }
.pied-grille li { line-height: 1.55; }
.pied h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.pied ul { list-style: none; display: grid; gap: 10px; }
.pied a { color: rgba(255, 255, 255, .78); }
.pied a:hover { color: #fff; }
.pied .marque-texte strong { color: #fff; }
.pied .marque-texte span { color: rgba(255, 255, 255, .62); }
.pied-desc { margin-top: 18px; max-width: 320px; font-size: .88rem; line-height: 1.7; }
.pied-bas {
  border-top: 1px solid rgba(255, 255, 255, .13); padding: 22px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: rgba(255, 255, 255, .6);
}

/* ------------------------------------------------------- Apparition douce */
.apparait { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.apparait.visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------ Adaptations */
@media (max-width: 980px) {
  .hero-grille, .erp-grille, .contact-grille { grid-template-columns: 1fr; gap: 44px; }
  .grille--4 { grid-template-columns: repeat(2, 1fr); }
  .pied-grille { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
  .pied-grille > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .hero { padding: 132px 0 72px; }
  .grille--3, .grille--2, .grille--4 { grid-template-columns: 1fr; }
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 76px 0 auto; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 16px 24px 28px; border-bottom: 1px solid var(--border);
    box-shadow: var(--ombre);
    /* Replié : déplacé hors écran ET rendu inerte, pour qu'aucun lien ne reste
       atteignable au clavier ou par un lecteur d'écran. */
    transform: translateY(-110%); visibility: hidden; opacity: 0;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }
  .nav--ouvert { transform: none; visibility: visible; opacity: 1; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .champ-double { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr 1fr; gap: 28px; }
  .pied-grille > div:first-child { grid-column: 1 / -1; }
  .hero-reperes { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .apparait { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- Packs */
.pack { display: flex; flex-direction: column; position: relative; }
.pack-nom { font-family: inherit; font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.pack-cible { color: var(--text-muted); font-size: .9rem; margin-top: 6px; }
.pack-liste { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 10px; flex: 1; }
.pack-liste li { position: relative; padding-left: 26px; font-size: .92rem; }
.pack-liste li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(22,130,74,.12);
}
.pack-liste li::after {
  content: ''; position: absolute; left: 5px; top: 12px; width: 6px; height: 3px;
  border-left: 2px solid var(--good-text, #16824a); border-bottom: 2px solid var(--good-text, #16824a);
  transform: rotate(-45deg);
}
.pack-liste em { font-style: normal; color: var(--text-muted); font-size: .85em; }
.pack--vedette { border-color: var(--navy); box-shadow: 0 12px 34px rgba(20,75,134,.12); }
.pack-etiquette {
  position: absolute; top: -12px; left: 28px; background: var(--navy); color: #fff;
  font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px;
}
/* ------------------------------------------------------- Centre d'appel */
.appel {
  margin-top: 40px; background: linear-gradient(140deg, var(--navy), #0c2f55); color: #fff;
  border-radius: 14px; padding: 38px 40px; display: flex; align-items: center;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.appel h3 { color: #fff; font-size: 1.28rem; margin: 4px 0 10px; }
.appel p { color: rgba(255,255,255,.84); font-size: .95rem; max-width: 620px; }
.appel-actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* ---------------------------------------------------- Vidéo du logiciel */
.video-cadre {
  position: relative; border-radius: 14px; overflow: hidden; background: #0c2f55;
  border: 1px solid rgba(255,255,255,.16); aspect-ratio: 16/9;
}
.video-cadre video, .video-cadre iframe { width: 100%; height: 100%; display: block; border: 0; object-fit: cover; }
.video-attente {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; text-align: center; padding: 26px; color: #fff;
}
.video-attente .jouer {
  width: 66px; height: 66px; border-radius: 50%; background: rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,.4);
}
.video-attente p { font-size: .86rem; color: rgba(255,255,255,.75); max-width: 340px; }
@media (max-width: 780px) { .appel { padding: 30px 24px; } }

/* --------------------------------------------------------- Réseaux sociaux */
.reseaux { display: flex; gap: 10px; margin-top: 18px; }
.reseaux a {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; color: #fff; transition: all .22s ease;
}
.reseaux a:hover { background: var(--navy-light); transform: translateY(-2px); color: #fff; }

/* ===== Boutique et panier ===== */
/* --------------------------------------------------------- Boutique */
.filtres { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 30px; }
.filtre {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: #fff;
  font-family: inherit; font-size: .87rem; color: var(--text-muted); cursor: pointer; transition: all var(--t);
}
.filtre:hover { border-color: var(--navy-light); color: var(--navy); }
.filtre--actif { background: var(--navy); border-color: var(--navy); color: #fff; }

.produit {
  background: #fff; border: 1px solid var(--border); border-radius: var(--rayon);
  overflow: hidden; display: flex; flex-direction: column; transition: all var(--t);
}
.produit:hover { border-color: var(--navy-light); box-shadow: var(--ombre); transform: translateY(-4px); }
.produit-visuel {
  position: relative; aspect-ratio: 4/3; background: linear-gradient(160deg, var(--navy-pale), #fff);
  display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border);
}
.produit-visuel svg { width: 62%; height: 62%; }
.produit-visuel img { width: 100%; height: 100%; object-fit: contain; padding: 14px; background: #fff; }
.ligne-visuel img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; background: #fff; }
.etiquette {
  position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px;
  font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: var(--navy); color: #fff;
}
.etiquette--stock { background: rgba(22,130,74,.12); color: var(--good); }
.produit-corps { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.produit-cat { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.produit h3 { font-size: 1rem; margin: 7px 0 8px; }
.produit p { font-size: .85rem; color: var(--text-muted); flex: 1; }
.produit-bas { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.prix { font-size: 1.16rem; font-weight: 700; color: var(--navy); white-space: nowrap; }
.prix small { display: block; font-size: .68rem; font-weight: 400; color: var(--text-muted); letter-spacing: .04em; }


/* ------------------------------------------------------------ Panier */
.voile { position: fixed; inset: 0; background: rgba(20,32,43,.5); opacity: 0; visibility: hidden; transition: all var(--t); z-index: 290; }
.voile--ouvert { opacity: 1; visibility: visible; }
.tiroir {
  position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 420px; background: #fff;
  z-index: 300; display: flex; flex-direction: column; transform: translateX(100%);
  transition: transform var(--t); box-shadow: -8px 0 40px rgba(20,32,43,.16);
}
.tiroir--ouvert { transform: none; }
.tiroir-entete { padding: 22px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.tiroir-corps { flex: 1; overflow-y: auto; padding: 20px 24px; }
.tiroir-pied { padding: 22px 24px; border-top: 1px solid var(--border); background: var(--bg-alt); }
.fermer { width: 36px; height: 36px; border: none; background: transparent; border-radius: 8px; cursor: pointer; color: var(--text-muted); }
.fermer:hover { background: var(--bg-alt); color: var(--text); }
.ligne-panier { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.ligne-panier:last-child { border-bottom: none; }
.ligne-visuel { width: 58px; height: 58px; border-radius: 9px; background: var(--navy-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ligne-visuel svg { width: 62%; height: 62%; }
.ligne-info { flex: 1; min-width: 0; }
.ligne-info h4 { font-size: .9rem; font-weight: 500; }
.ligne-info .prix { font-size: .95rem; margin-top: 3px; }
.quantite { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.quantite button {
  width: 27px; height: 27px; border-radius: 7px; border: 1px solid var(--border); background: #fff;
  cursor: pointer; font-family: inherit; font-size: .95rem; color: var(--text); line-height: 1;
}
.quantite button:hover { border-color: var(--navy); color: var(--navy); }
.quantite span { min-width: 22px; text-align: center; font-size: .9rem; font-weight: 500; }
.retirer { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: .78rem; padding: 0; text-decoration: underline; }
.retirer:hover { color: #b42318; }
.panier-vide { text-align: center; padding: 50px 0; color: var(--text-muted); font-size: .92rem; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.total strong { font-size: 1.35rem; color: var(--navy); }


.produit-visuel img { width: 100%; height: 100%; object-fit: contain; padding: 14px; background: #fff; }
.ligne-visuel img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; background: #fff; }
.panier-btn {
  position: relative; display: flex; align-items: center; gap: 7px; padding: 8px 12px;
  border-radius: 10px; border: 1px solid var(--border); background: #fff; cursor: pointer;
  font-family: inherit; font-size: .9rem; color: var(--text); transition: all .22s ease;
}
.panier-btn:hover { border-color: var(--navy); color: var(--navy); }
.panier-compte {
  min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; background: var(--navy);
  color: #fff; font-size: .74rem; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.avis {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(120%);
  background: var(--text); color: #fff; padding: 13px 22px; border-radius: 10px; font-size: .9rem;
  z-index: 400; transition: transform .22s ease; box-shadow: 0 16px 48px rgba(15,58,104,.2); max-width: 90vw; text-align: center;
}
.avis--visible { transform: translateX(-50%) translateY(0); }
.btn--bloc { width: 100%; }
.btn--petit { padding: 10px 18px; font-size: .88rem; }
.entete-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 780px) { .entete .conteneur { gap: 10px; } .panier-btn span:not(.panier-compte) { display: none; } }

/* ------------------------------------------- Accroche et emblème animé */
.hero-grille { display: grid; grid-template-columns: 1.08fr .92fr; gap: 52px; align-items: center; }
.hero-texte { text-align: left; }
.hero-texte .accroche { margin-top: 20px; max-width: 540px; }
.hero-texte .hero-actions { justify-content: flex-start; }
.hero-texte .hero-reperes { justify-content: flex-start; gap: 44px; margin-top: 34px; }

.embleme { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; max-width: 380px; margin: 0 auto; }
.embleme-anneaux { position: absolute; inset: 0; width: 100%; height: 100%; }
.embleme-logo { width: 54%; height: auto; position: relative; animation: flotter 5.5s ease-in-out infinite; }

.anneau { transform-origin: 160px 160px; }
.anneau--1 { animation: tourner 16s linear infinite; }
.anneau--2 { animation: tourner 11s linear infinite reverse; }
.orbite { transform-origin: 160px 160px; animation: tourner 22s linear infinite; }
.orbite--inverse { animation: tourner 18s linear infinite reverse; }
.halo { transform-origin: 160px 160px; animation: respirer 4.5s ease-in-out infinite; }

@keyframes tourner { to { transform: rotate(360deg); } }
@keyframes flotter { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }
@keyframes respirer { 0%, 100% { transform: scale(1); opacity: .06; } 50% { transform: scale(1.09); opacity: .11; } }

@media (max-width: 1000px) {
  .hero-grille { grid-template-columns: 1fr; gap: 36px; }
  .embleme { max-width: 260px; order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .anneau, .orbite, .halo, .embleme-logo { animation: none !important; }
}
@media (max-width: 780px) {
  .nav { position: fixed; inset: 62px 0 auto; }
  .hero-centre .hero-reperes { gap: 28px; }
}

/* ================================================================
   Accroche : texte à gauche, emblème animé à droite
   (déclaré en fin de feuille pour primer sur les styles antérieurs)
   ================================================================ */
.hero .hero-grille { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero-texte { text-align: left; }
.hero-texte .accroche { margin-top: 20px; max-width: 540px; }
.hero-texte .hero-actions { justify-content: flex-start; }
.hero-texte .hero-reperes { justify-content: flex-start; margin-top: 34px; gap: 40px; }

.hero-embleme { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-embleme .embleme { width: min(320px, 76%); height: auto; overflow: visible; }
.hero-embleme .embleme-nom {
  font-weight: 700; font-size: 1.02rem; color: var(--navy); letter-spacing: .06em;
  animation: tc-nom 9s ease-in-out infinite;
}
.hero-embleme .anneau { transform-origin: 160px 160px; animation: tc-tourne 26s linear infinite; }
.hero-embleme .halo   { transform-origin: 160px 160px; animation: tc-respire 4.5s ease-in-out infinite; }
.hero-embleme .coeur  { transform-origin: 160px 160px; animation: tc-battement 4.5s ease-in-out infinite; }
.hero-embleme .b      { transform-origin: 160px 160px; animation: tc-pulse 4.5s ease-in-out infinite; }
.hero-embleme .b2     { animation-delay: .5s; }
.hero-embleme .b3     { animation-delay: 1s; }
.hero-embleme .liens  { stroke-dasharray: 420; animation: tc-trace 9s ease-in-out infinite; }

@keyframes tc-tourne    { to { transform: rotate(360deg); } }
@keyframes tc-respire   { 0%, 100% { opacity: .05; transform: scale(1); } 50% { opacity: .12; transform: scale(1.07); } }
@keyframes tc-battement { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes tc-pulse     { 0%, 100% { transform: scale(1); opacity: .92; } 45% { transform: scale(1.13); opacity: 1; } }
@keyframes tc-trace     { 0% { stroke-dashoffset: 420; } 45%, 75% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -420; } }
@keyframes tc-nom       { 0%, 20% { opacity: 0; transform: translateY(6px); } 40%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; } }

@media (max-width: 900px) {
  .hero .hero-grille { grid-template-columns: 1fr; gap: 28px; }
  .hero-embleme { order: -1; }
  .hero-embleme .embleme { width: 180px; }
  .hero-texte .hero-reperes { gap: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-embleme .anneau, .hero-embleme .halo, .hero-embleme .coeur,
  .hero-embleme .b, .hero-embleme .liens, .hero-embleme .embleme-nom { animation: none; }
  .hero-embleme .liens { stroke-dashoffset: 0; }
  .hero-embleme .embleme-nom { opacity: 1; }
}

/* ================================================================
   Emblème d'accueil : logo officiel et métiers en orbite lente
   ================================================================ */
.hero-embleme .logo-scene {
  overflow: visible; padding: 4%;
  position: relative; width: min(360px, 88%); aspect-ratio: 1; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.hero-embleme .logo-image {
  position: relative; z-index: 2; width: 58%; height: auto;
  filter: drop-shadow(0 8px 22px rgba(15, 58, 104, .14));
  animation: tc-souffle 7s ease-in-out infinite;
}
/* Halo en dégradé, sans bord net : il éclaire le centre sans ternir le logo. */
.hero-embleme .logo-halo {
  position: absolute; inset: 8%; border-radius: 50%; background:
    radial-gradient(circle, rgba(20,75,134,.10) 0%, rgba(20,75,134,.04) 52%, rgba(20,75,134,0) 72%);
  animation: tc-respire 7s ease-in-out infinite;
}
.hero-embleme .logo-orbite { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* L'orbite tourne dans un sens, chaque pastille tourne dans l'autre :
   les icônes restent parfaitement droites, sans jamais basculer. */
.hero-embleme .orbite-tour   { transform-origin: 160px 160px; animation: tc-orbite 60s linear infinite; }
.hero-embleme .orbite-contre { animation: tc-contre 60s linear infinite; }
.hero-embleme .orbite-point circle { filter: drop-shadow(0 3px 10px rgba(15, 58, 104, .12)); }

@keyframes tc-orbite  { to { transform: rotate(360deg); } }
@keyframes tc-contre  { to { transform: rotate(-360deg); } }
@keyframes tc-souffle { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes tc-respire { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }

@media (max-width: 900px) { .hero-embleme .logo-scene {
  overflow: visible; padding: 4%; width: 240px; } }
@media (prefers-reduced-motion: reduce) {
  .hero-embleme .logo-image, .hero-embleme .logo-halo,
  .hero-embleme .orbite-tour, .hero-embleme .orbite-contre { animation: none; }
}

/* ------------------------------------------------- Portrait du fondateur */
.entreprise-grille { display: grid; grid-template-columns: 1.6fr 300px; gap: 48px; align-items: center; margin-bottom: 46px; }
.entreprise-grille .section-entete { margin-bottom: 0; max-width: none; }
.fondateur { margin: 0; text-align: center; }
.fondateur img {
  display: block; width: 100%; max-width: 260px; height: 325px; margin: 0 auto;
  border-radius: 14px; object-fit: cover; object-position: center 22%;
  box-shadow: 0 14px 38px rgba(15, 58, 104, .16); border: 4px solid #fff;
}
.fondateur figcaption { margin-top: 14px; }
.fondateur strong { display: block; font-size: 1rem; color: var(--text); }
.fondateur span { font-size: .82rem; color: var(--text-muted); letter-spacing: .04em; }
@media (max-width: 900px) {
  .entreprise-grille { grid-template-columns: 1fr; gap: 30px; }
  .fondateur img { max-width: 200px; height: 250px; }
}

/* ================================================================
   Animations : titre, chiffres, encart Ariel
   ================================================================ */

/* --- Titre de l'accroche : les mots se posent l'un après l'autre --- */
.titre-anime span {
  display: inline-block;
  opacity: 0; transform: translateY(24px);
  animation: tc-mot .75s cubic-bezier(.2, .7, .3, 1) forwards;
}
.titre-anime span:nth-child(1) { animation-delay: .08s; }
.titre-anime span:nth-child(2) { animation-delay: .20s; }
.titre-anime span:nth-child(3) { animation-delay: .32s; }
.titre-anime .point {
  animation-delay: .46s; color: var(--navy-light);
}
@keyframes tc-mot { to { opacity: 1; transform: none; } }

/* Un trait se trace sous le titre, une seule fois. */
.titre-anime::after {
  content: ''; display: block; height: 3px; width: 0; margin-top: 14px; border-radius: 2px;
  background: linear-gradient(90deg, var(--navy), var(--navy-light));
  animation: tc-trait .9s cubic-bezier(.2, .7, .3, 1) .55s forwards;
}
@keyframes tc-trait { to { width: 92px; } }

/* --- Chiffres qui montent --- */
.repere strong { font-variant-numeric: tabular-nums; }

/* --- Encart Ariel --- */
.ariel {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 26px; padding: 18px 20px;
  border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
}
.ariel strong { color: #fff; font-size: .98rem; display: block; margin-bottom: 4px; }
.ariel p { color: rgba(255, 255, 255, .82); font-size: .9rem; margin: 0; }
.ariel-micro {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; color: #fff;
  background: rgba(255, 255, 255, .14); display: flex; align-items: center; justify-content: center;
  position: relative;
}
/* Le micro pulse doucement, comme un assistant à l'écoute. */
.ariel-micro::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); animation: tc-ecoute 2.6s ease-out infinite;
}
@keyframes tc-ecoute {
  0% { transform: scale(.85); opacity: .9; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { opacity: 0; }
}
.ariel-phrase { font-weight: 600; color: #fff; border-bottom: 1px dashed rgba(255,255,255,.45); }
.ariel-phrase::after { content: '|'; margin-left: 2px; animation: tc-curseur 1s steps(2) infinite; }
@keyframes tc-curseur { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .titre-anime span, .titre-anime::after, .ariel-micro::after, .ariel-phrase::after { animation: none; }
  .titre-anime span { opacity: 1; transform: none; }
  .titre-anime::after { width: 92px; }
  .ariel-phrase::after { content: ''; }
}

/* Cinq métiers : trois puis deux, plutôt qu'une ligne trop serrée. */
.grille--metiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .grille--metiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 780px)  { .grille--metiers { grid-template-columns: 1fr; } }

