/* =========================================================
   RELIA Consulting — feuille de style unique du site
   Pour changer les couleurs ou la police : modifiez les
   variables ci-dessous, tout le site suit.
   ========================================================= */
:root {
  --rouge: #CD2330;          /* couleur de marque (icônes du site actuel) */
  --rouge-fonce: #A81B26;
  --encre: #0F1B2D;          /* bleu nuit : titres, bandeaux sombres */
  --encre-2: #1B2A42;
  --texte: #334155;
  --gris: #64748B;
  --bleu-gris: #A5B6C0;
  --ligne: #E3E8EF;
  --fond: #FFFFFF;
  --fond-doux: #F5F7FA;
  --rayon: 14px;
  --ombre: 0 10px 30px rgba(15, 27, 45, .08);
  --largeur: 1180px;
  --police: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--police); color: var(--texte); background: var(--fond); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rouge); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--encre); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--doux { background: var(--fond-doux); }
.section--sombre { background: var(--encre); color: #CBD5E1; }
.section--sombre h2, .section--sombre h3 { color: #fff; }
.entete-section { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.entete-section--compact { margin-bottom: 28px; }
.entete-section--compact .surtitre { margin-bottom: 4px; }
.entete-section--compact h2 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin-bottom: 0; color: var(--gris); font-weight: 600; }
.surtitre { display: inline-block; color: var(--rouge); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 2px solid var(--rouge); background: var(--rouge); color: #fff; transition: background .2s, color .2s, transform .2s; cursor: pointer; }
.btn:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); text-decoration: none; transform: translateY(-1px); }
.btn--contour { background: transparent; color: var(--rouge); }
.btn--contour:hover { background: var(--rouge); color: #fff; }
.btn--clair { background: #fff; border-color: #fff; color: var(--encre); }
.btn--clair:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--petit { padding: 9px 18px; font-size: .85rem; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.defile { border-color: var(--ligne); box-shadow: 0 4px 20px rgba(15,27,45,.06); }
.site-header .conteneur { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav a { color: var(--encre); font-weight: 500; font-size: .95rem; }
.nav ul a:hover, .nav ul a.actif { color: var(--rouge); text-decoration: none; }
.nav ul a.actif { box-shadow: inset 0 -2px 0 var(--rouge); padding-bottom: 4px; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--encre); }
.burger svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 78px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px; border-bottom: 1px solid var(--ligne); box-shadow: var(--ombre); transform: translateY(-120%); transition: transform .25s; }
  .nav.ouvert { transform: translateY(0); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--ligne); }
  .nav ul a.actif { box-shadow: none; }
  .nav .btn { margin-top: 18px; justify-content: center; }
}

/* ---------- Bandeau de page (identique sur toutes les pages, articles compris) ---------- */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, rgba(205,35,48,.35), transparent 60%), linear-gradient(135deg, var(--encre) 0%, var(--encre-2) 100%); color: #CBD5E1; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.hero .conteneur { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { color: #fff; max-width: 820px; }
.surligne-rouge { display: inline-block; background: var(--rouge); padding: .08em .2em; margin-bottom: 14px; }
.chiffre-surligne { color: var(--rouge); font-weight: 700; }
.hero p { font-size: 1.12rem; max-width: 680px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.hero .actions { margin-top: 28px; }
.hero--page .conteneur { padding-top: 72px; padding-bottom: 72px; }
.hero--accueil .conteneur { padding-top: 120px; padding-bottom: 86px; }
.fil { font-size: .85rem; color: var(--bleu-gris); margin-bottom: 14px; }
.fil a { color: var(--bleu-gris); }
.meta-article { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .92rem; color: var(--bleu-gris); margin-top: 8px; }
.etiquette { display: inline-block; background: rgba(205,35,48,.15); color: #fff; border: 1px solid rgba(205,35,48,.6); border-radius: 999px; padding: 2px 12px; font-size: .8rem; font-weight: 600; }

/* ---------- Défilement de logos / valeurs ---------- */
.defilant { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.defilant__piste { display: flex; gap: 56px; width: max-content; animation: defile 40s linear infinite; align-items: center; }
.defilant:hover .defilant__piste { animation-play-state: paused; }
.defilant img { height: 40px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.defilant img:hover { filter: none; opacity: 1; }
.defilant a { display: flex; align-items: center; }
.defilant a:hover { text-decoration: none; }
@keyframes defile { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .defilant__piste { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* Variante glissable : défilement auto + glisser à la souris/au doigt (section Références) */
.defilant--glissable { overflow-x: auto; overflow-y: hidden; overflow-anchor: none; scroll-behavior: auto; scrollbar-width: none; -ms-overflow-style: none; cursor: grab; -webkit-overflow-scrolling: touch; }
.defilant--glissable::-webkit-scrollbar { display: none; }
.defilant--glissable.glisse { cursor: grabbing; scroll-behavior: auto; }
.defilant--glissable .defilant__piste { animation: none; }
.confiance { padding-top: 64px; padding-bottom: 56px; background: var(--fond-doux); }
.bande-outils { padding: 44px 0; border-bottom: 1px solid var(--ligne); }
.bande-outils h3 { text-align: center; font-size: 1rem; color: var(--gris); font-weight: 500; margin-bottom: 26px; }
.bande-valeurs { background: var(--rouge); color: #fff; padding: 18px 0; }
.bande-valeurs .defilant__piste { gap: 40px; animation-duration: 28s; }
.bande-valeurs span { font-weight: 600; font-size: 1.15rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 40px; }
.bande-valeurs span::after { content: "✦"; opacity: .7; }

/* ---------- Grilles et cartes ---------- */
.grille { display: grid; gap: 24px; }
.grille--2 { grid-template-columns: repeat(2, 1fr); }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.grille--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grille--3, .grille--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grille--2, .grille--3, .grille--4 { grid-template-columns: 1fr; } }

.carte { background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 30px; transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; }
.carte:hover { transform: translateY(-3px); box-shadow: var(--ombre); border-color: transparent; }
.carte p:last-child { margin-bottom: 0; }
.carte .btn { margin-top: auto; align-self: flex-start; }
.icone { width: 56px; height: 56px; border-radius: 14px; background: rgba(205,35,48,.08); color: var(--rouge); display: grid; place-items: center; margin-bottom: 18px; flex: none; }
.icone svg { width: 32px; height: 32px; fill: currentColor; }
.icone svg [fill="#000000"], .icone svg [fill="#000"] { fill: currentColor; }

.carte-offre .prix { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--ligne); }
.carte-offre .prix strong { display: block; color: var(--rouge); font-size: 1.15rem; }
.carte-offre .prix span { color: var(--gris); font-size: .85rem; }
.carte-offre ul.tarifs { list-style: none; padding: 0; margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--ligne); font-size: .92rem; }
.carte-offre ul.tarifs li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.carte-offre ul.tarifs li span { color: var(--gris); }
.carte-offre ul.tarifs li strong { color: var(--encre); white-space: nowrap; }

/* ---------- Offres (page Services) : carte TMA + tableau ---------- */
.offres-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }

.carte-offre.featured { background: #FCF4F2; border-color: #FCE4DF; }
.carte-offre.featured h3 { font-size: 1.3rem; }
.carte-offre.featured .icone { background: var(--rouge); color: #fff; }
.carte-offre.featured p { font-size: .98rem; max-width: 42ch; }

.lien-decouvrir { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--rouge); }
.lien-decouvrir:hover { text-decoration: none; }
.lien-decouvrir svg { width: 14px; height: 14px; transition: transform .2s; }
.lien-decouvrir:hover svg { transform: translateX(4px); }

.tableau-offres { display: flex; flex-direction: column; }
.ligne-offre { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--ligne); }
.ligne-offre:first-child { padding-top: 0; }
.ligne-offre:last-child { border-bottom: none; }
.icone--sm { width: 42px; height: 42px; border-radius: 11px; margin-bottom: 0; }
.icone--sm svg { width: 22px; height: 22px; }
.corps-ligne h3 { font-size: 1.02rem; margin: 0 0 4px; }
.corps-ligne p { margin: 0; color: var(--gris); font-size: .88rem; }

@media (max-width: 860px) {
  .offres-layout { grid-template-columns: 1fr; gap: 32px; }
}

.liste-coches { list-style: none; padding: 0; margin: 0 0 24px; }
.liste-coches li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--ligne); }
.liste-coches li:last-child { border-bottom: 0; }
.liste-coches svg { width: 20px; height: 20px; flex: none; fill: var(--rouge); margin-top: 3px; }

/* ---------- Mise en page deux colonnes ---------- */
.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .deux-col { grid-template-columns: 1fr; gap: 36px; } }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); background: var(--encre); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.photo { border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.badge-annees { position: absolute; left: 20px; bottom: 20px; background: var(--rouge); color: #fff; border-radius: 12px; padding: 14px 20px; line-height: 1.1; }
.badge-annees strong { display: block; font-size: 2.2rem; }

/* ---------- Chiffres clés ---------- */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 760px) { .chiffres { grid-template-columns: repeat(2, 1fr); } }
.chiffre strong { display: block; font-size: clamp(2.2rem, 5vw, 3.2rem); color: #fff; font-weight: 700; line-height: 1.1; }
.chiffre span { color: var(--bleu-gris); }

/* ---------- Chiffres clés — bandeau flottant sous le hero (accueil) ---------- */
.chiffres-bande { position: relative; z-index: 2; margin-top: -64px; }
.chiffres-carte {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: var(--rayon);
  box-shadow: 0 24px 48px -14px rgba(15, 27, 45, .25);
  padding: 36px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.chiffres-carte::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--rouge), var(--rouge-fonce)); }
.chiffres-carte .chiffre { text-align: center; padding: 0 16px; }
.chiffres-carte .chiffre + .chiffre { border-left: 1px solid var(--ligne); }
.chiffres-carte .chiffre strong { color: var(--rouge); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; }
.chiffres-carte .chiffre span { color: var(--gris); font-size: .9rem; font-weight: 500; }
@media (max-width: 760px) {
  .chiffres-bande { margin-top: -40px; }
  .chiffres-carte { grid-template-columns: repeat(2, 1fr); gap: 28px 8px; padding: 28px 20px; }
  .chiffres-carte .chiffre + .chiffre { border-left: 0; }
  .chiffres-carte .chiffre:nth-child(n+3) { border-top: 1px solid var(--ligne); padding-top: 22px; }
}

/* ---------- Étapes (régie / forfait) ---------- */
.etapes { list-style: none; padding: 0; margin: 20px 0 0; counter-reset: etape; }
.etapes > li { position: relative; padding: 0 0 22px 56px; counter-increment: etape; }
.etapes > li::before { content: counter(etape); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--rouge); color: #fff; font-weight: 700; display: grid; place-items: center; }
.etapes > li::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: 4px; width: 2px; background: var(--ligne); }
.etapes > li:last-child::after { display: none; }
.etapes h4 { margin: 6px 0 6px; font-size: 1.02rem; }
.etapes ul { list-style: none; margin: 0; padding: 0; color: var(--gris); font-size: .92rem; }
.etapes ul li { position: relative; padding: 3px 0 3px 16px; }
.etapes ul li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--bleu-gris); }

/* ---------- Appel à l'action ---------- */
.cta { background: linear-gradient(135deg, var(--rouge) 0%, var(--rouge-fonce) 100%); border-radius: 22px; padding: 56px; color: #fff; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.88); margin: 0; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; padding: 36px 26px; } }

/* ---------- Blog ---------- */
.carte-article { padding: 0; overflow: hidden; }
.carte-article a.couverture { display: block; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--encre), var(--encre-2)); overflow: hidden; }
.carte-article a.couverture img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.carte-article:hover a.couverture img { transform: scale(1.04); }
.carte-article .corps { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.carte-article h3 a { color: var(--encre); }
.carte-article h3 a:hover { color: var(--rouge); text-decoration: none; }
.carte-article .cat { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--rouge); margin-bottom: 8px; }
.carte-article .date { font-size: .85rem; color: var(--gris); margin-top: auto; }

.prose { max-width: 760px; margin: 0 auto; font-size: 1.05rem; }
.prose h2 { margin-top: 1.8em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--rouge); background: var(--fond-doux); border-radius: 0 10px 10px 0; font-style: italic; color: var(--encre); }
.prose .encadre { background: var(--fond-doux); border: 1px solid var(--ligne); border-radius: 12px; padding: 18px 22px; margin: 1.4em 0; }
.prose .encadre strong:first-child { color: var(--rouge); display: block; margin-bottom: 4px; }
.image-une { max-width: 900px; margin: -48px auto 48px; position: relative; z-index: 2; border-radius: 18px; overflow: hidden; box-shadow: var(--ombre); }
.a-rediger { max-width: 760px; margin: 0 auto; text-align: center; padding: 48px 24px; border: 2px dashed var(--ligne); border-radius: 16px; color: var(--gris); }

/* ---------- Contact ---------- */
.info-contact h3 { margin-bottom: 8px; }
.info-contact p { margin: 0; }


.carte-bureau p a { color: var(--texte); }
.carte-bureau p a:hover { color: var(--rouge); }
.carte-map { margin-top: 18px; border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--ligne); }
.carte-map iframe { width: 100%; height: 220px; border: 0; display: block; }

.faq-liste { max-width: 760px; margin: 0 auto; }
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--ligne); }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 1.04rem; margin: 0 0 6px; }
.faq-item p { margin: 0; color: var(--gris); font-size: .92rem; }
.reseaux { display: flex; gap: 12px; flex-wrap: wrap; }
.reseaux a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--ligne); border-radius: 999px; color: var(--encre); font-weight: 500; }
.reseaux a:hover { border-color: var(--rouge); color: var(--rouge); text-decoration: none; }
.reseaux svg { width: 18px; height: 18px; fill: currentColor; }
.qr { width: 160px; border-radius: 12px; background: #fff; padding: 8px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--fond-doux); border-top: 1px solid var(--ligne); padding: 64px 0 28px; font-size: .95rem; }
.site-footer .grille-pied { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .site-footer .grille-pied { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--texte); }
.site-footer a:hover { color: var(--rouge); }
.site-footer .logo img { height: 40px; margin-bottom: 14px; }
.site-footer .grille-pied > * { min-width: 0; }
.newsletter { display: flex; gap: 8px; margin-top: 14px; width: 100%; max-width: 380px; }
.newsletter input { flex: 1; min-width: 0; padding: 11px 16px; border: 1px solid var(--ligne); border-radius: 999px; font: inherit; }
.bas-pied { border-top: 1px solid var(--ligne); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--gris); font-size: .88rem; }
.bas-pied .reseaux a { padding: 6px 14px; font-size: .85rem; }

/* ---------- Apparition au défilement ---------- */
.apparait { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.apparait.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .apparait { opacity: 1; transform: none; transition: none; } }
