/* ==========================================================================
   DTM SÉCURITÉ - feuille de style du site public
   ========================================================================== */

@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/poppins-300.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-400.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-500.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-700.woff") format("woff"); }

:root {
  --rouge: #e01015;
  --rouge-fonce: #c70904;
  --bleu-nuit: #082b43;
  --bleu-menu: #233d53;
  --bleu-bas: #051b2e;
  --bleu-vif: #536eff;
  --gris: #f2f2f2;
  --texte: #1d1d1d;
  --largeur: 1170px;
  --police: "Poppins", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--police); font-weight: 300; font-size: 18px; line-height: 1.45; color: var(--texte); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }
.rouge { color: var(--rouge); }
.marque { white-space: nowrap; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; background: #fff; padding: 8px 12px; z-index: 1000; }
.ico { width: 1em; height: 1em; fill: currentColor; vertical-align: -.12em; }

/* --- En-tête -------------------------------------------------------------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; }
.logo img { width: 340px; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.menu a { display: block; padding: 10px 14px; text-decoration: none; font-weight: 500; font-size: 16px; color: #111; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.menu a:hover, .menu a.actif { color: var(--rouge); border-bottom-color: var(--rouge); }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 3px; background: #111; margin: 5px 0; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Diaporama d'accueil (structure ; animations dans animations.css) - */
.diaporama { position: relative; height: clamp(300px, 36.5vw, 540px); overflow: hidden; background: #2b2b2b; }
.diaporama-piste { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; visibility: hidden; }
.slide.active, .slide.precedente { visibility: visible; }
.slide.active { z-index: 2; }
.slide.precedente { z-index: 1; }
.couche { position: absolute; inset: 0; }
.slide-fond { position: absolute; inset: 0; background-size: cover; background-position: center; }
.couche-triangle { display: flex; justify-content: center; pointer-events: none; }
.slide-triangle { height: 100%; width: auto; aspect-ratio: 1 / 1; display: block; }
.slide-triangle polygon { fill: rgba(70, 70, 70, .38); }
.slide-bande { position: absolute; left: 0; right: 0; top: 26.3%; height: 48.5%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 20px; }
.slide-bande.avec-fond::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .48); }
.couche-texte { position: relative; inset: auto; }
.slide-titre { margin: 0; font-weight: 700; letter-spacing: .12em; line-height: 1.05; text-transform: uppercase; font-size: clamp(30px, 5.6vw, 84px); }
.slide-titre .l1 { display: block; color: #fff; }
.slide-titre .l2 { display: block; color: var(--rouge); }

/* --- Bannière des pages intérieures -------------------------------------- */
.banniere { height: clamp(170px, 22vw, 420px); display: flex; align-items: flex-end; position: relative; overflow: hidden; background: #333; }
.banniere-fond { position: absolute; left: 0; right: 0; top: -12%; bottom: -12%; background-size: cover; background-position: center; will-change: transform; }
.banniere::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.25), transparent 50%); }
.banniere .container { position: relative; z-index: 1; }
.banniere h1 { color: #fff; font-weight: 300; text-transform: uppercase; font-size: clamp(34px, 5vw, 70px); letter-spacing: -.01em; margin: 0 0 8px; text-shadow: 0 1px 8px rgba(0,0,0,.25); }

/* --- Titres de section ---------------------------------------------------- */
.titre-section { font-weight: 700; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 36px); color: #1a1a1a; }
.titre-section.titre-casse { text-transform: none; }
.titre-section::after { content: ""; display: block; width: 160px; height: 4px; background: var(--rouge-fonce); margin: 26px auto 34px; }
.titre-section.centre { text-align: center; }
.texte { font-size: 19px; }
.justifie { text-align: justify; hyphens: auto; }
.texte a { color: var(--rouge); }
.texte ul { padding-left: 1.2em; }
.point .texte a { color: inherit; text-decoration: none; }
.point .texte a:hover { color: var(--rouge); }

/* --- Bloc "bienvenue" (titre + texte + illustration) ---------------------- */
.bienvenue { padding: 50px 0 60px; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: center; }
.deux-colonnes .titre-section::after { margin-left: calc(50% - 80px); }
.illustration img { margin: 0 auto; }
.illustration.petite img { max-width: 220px; }
.galerie-intro { padding-bottom: 20px; }
.galerie-intro .titre-section::after { margin-left: calc(50% - 80px); }

/* --- Bandeaux accueil ----------------------------------------------------- */
.bandeau-rouge { background: var(--rouge); color: #fff; text-align: center; padding: 32px 0; }
.bandeau-rouge h2 { margin: 0; font-weight: 500; text-transform: uppercase; letter-spacing: .3em; font-size: clamp(16px, 2vw, 28px); }
.bandeau-bleu { background: var(--bleu-nuit); color: #fff; padding: 44px 0; }
.intro-bleu { max-width: 960px; margin: 0 auto; font-size: clamp(19px, 2vw, 28px); font-weight: 300; line-height: 1.3; }
.intro-bleu p { margin: 0; }
.intro-bleu .marque { font-weight: 700; }

/* --- Les 4 points de l'accueil ------------------------------------------- */
.points { background: var(--gris); padding: 70px 0 120px; position: relative; overflow: hidden; }
.grille-points { display: grid; grid-template-columns: 1fr 1fr; gap: 60px 60px; max-width: 1060px; }
.point { display: grid; grid-template-columns: 110px 1fr; gap: 26px; align-items: start; position: relative; z-index: 1; }
.numero { position: relative; width: 108px; height: 108px; }
.numero::before { content: ""; position: absolute; left: 0; top: 18px; width: 92px; height: 92px; background: var(--bleu-vif); }
.numero span { position: absolute; right: 0; top: 0; width: 92px; height: 98px; background: #dc0b07; color: #fff; font: 700 84px/98px Arial, sans-serif; text-align: center; }
.point h3 { font-weight: 500; text-transform: uppercase; font-size: 20px; margin: 8px 0 6px; }
.point .texte { font-size: 16.5px; line-height: 1.4; }
.point .texte p { margin: 0; }
.nuages { position: absolute; left: 0; right: 0; bottom: 0; height: 100px; background:
  radial-gradient(60px 40px at 5% 100%, #e6e6e6 98%, transparent) ,
  radial-gradient(90px 60px at 18% 100%, #e9e9e9 98%, transparent),
  radial-gradient(70px 45px at 31% 100%, #e6e6e6 98%, transparent),
  radial-gradient(110px 70px at 46% 100%, #e9e9e9 98%, transparent),
  radial-gradient(80px 50px at 61% 100%, #e6e6e6 98%, transparent),
  radial-gradient(100px 65px at 76% 100%, #e9e9e9 98%, transparent),
  radial-gradient(70px 45px at 90% 100%, #e6e6e6 98%, transparent),
  linear-gradient(to top, #e8e8e8 20px, transparent 20px); }

/* --- "Ils nous font confiance" ------------------------------------------- */
.confiance { padding: 60px 0 70px; background: #fff url("../img/dot_map.png") center / min(1900px, 130%) no-repeat; }
.texte-centre { text-align: center; font-size: 19px; color: #333; }
.texte-centre p { margin: 0; }
.defilement { max-width: 1100px; margin: 50px auto 0; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.piste { display: flex; gap: 36px; width: max-content; animation: defile var(--duree, 120s) linear infinite; }
.defilement:hover .piste { animation-play-state: paused; }
.logo-partenaire { width: 168px; height: 134px; flex: none; display: flex; align-items: center; justify-content: center; }
.logo-partenaire img { max-height: 100%; object-fit: contain; }
.logo-partenaire a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
@keyframes defile { to { transform: translateX(calc(-50% - 18px)); } }
@media (prefers-reduced-motion: reduce) { .piste { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .piste [aria-hidden="true"] { display: none; } }

/* --- Prestations : "DTM SÉCURITÉ c'est" ---------------------------------- */
.cest { position: relative; isolation: isolate; background: var(--bleu-nuit); color: #fff; padding: 46px 0 40px; overflow: hidden; }
.cest-photo { position: absolute; left: 0; top: -14%; bottom: -14%; width: 45%; background-position: center; background-size: cover; background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to right, #000 70%, transparent); mask-image: linear-gradient(to right, #000 70%, transparent); }
.cest-texte { margin-left: 45%; max-width: 620px; position: relative; }
.cest h2 { font-weight: 300; font-size: clamp(24px, 2.4vw, 34px); margin-bottom: 26px; }
.cest h2 .marque { font-weight: 700; }
.liste-coches ul { list-style: none; padding: 0; margin: 0; }
.liste-coches li { position: relative; padding-left: 26px; margin-bottom: 22px; font-weight: 400; font-size: 18px; line-height: 1.35; }
.liste-coches li::before { content: ""; position: absolute; left: 0; top: .25em; width: 15px; height: 15px; border: 2px solid #fff; border-radius: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.4 4.7-5' fill='none' stroke='white' stroke-width='1.8'/%3E%3C/svg%3E") center/11px no-repeat; }

/* --- Prestations : cartes ------------------------------------------------- */
.systemes { background: var(--gris); padding: 70px 0 80px; }
.grille-cartes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1080px; margin: 0 auto; }
.carte { background: #fff; border: 1px solid #ddd; padding: 16px 18px 22px; }
.carte h3 { font-family: Arial, Helvetica, sans-serif; font-weight: 700; text-transform: uppercase; text-align: center; font-size: 21px; letter-spacing: .02em; min-height: 2.4em; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.carte-img { overflow: hidden; }
.carte img { width: 100%; aspect-ratio: 263 / 253; object-fit: cover; }
.carte-texte { font-size: 14.5px; font-weight: 400; line-height: 1.3; margin-top: 18px; }
.carte-texte p { margin: 0; }

/* --- Implantation -------------------------------------------------------- */
.carte-implantation img { width: 100%; height: auto; }
.regions { background: var(--bleu-nuit); color: #fff; padding: 36px 0 40px; }
.grille-regions { display: grid; grid-template-columns: 1fr 1fr; }
.region { text-align: center; padding: 0 20px; }
.region + .region { border-left: 1px solid rgba(255,255,255,.8); }
.region h2 { font-weight: 400; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.15; margin-bottom: 14px; }
.region p { margin: 0 0 4px; font-size: 21px; font-weight: 300; }
.region .nom { font-weight: 400; }
.region a { text-decoration: none; }
.region a:hover { text-decoration: underline; }

/* --- Galerie ------------------------------------------------------------- */
.galerie { padding: 10px 0 60px; }
/* Vignettes façon polaroïd : même taille pour toutes les photos (recadrées), la photo complète s'affiche à l'agrandissement */
.grille-galerie { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 26px; }
.polaroid { display: flex; flex-direction: column; background: #fff; padding: 10px 10px 0; color: var(--texte); text-decoration: none; border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,.14), 0 6px 16px rgba(0,0,0,.16); transition: transform .25s, box-shadow .25s; }
.grille-galerie .polaroid:nth-child(4n+1) { transform: rotate(-.8deg); }
.grille-galerie .polaroid:nth-child(4n+3) { transform: rotate(.7deg); }
.grille-galerie .polaroid:hover, .grille-galerie .polaroid:focus-visible { transform: translateY(-5px) rotate(0); box-shadow: 0 2px 4px rgba(0,0,0,.14), 0 16px 30px rgba(0,0,0,.24); }
.pol-photo { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #e9edf0; }
.pol-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pol-texte { display: block; height: 7.9em; padding: .75em 2px .6em; font-size: 12.5px; font-weight: 400; line-height: 1.35; overflow: hidden; text-align: left; }
.pol-lib { font-size: .8em; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--rouge); }
.pol-texte > .pol-lib { display: block; margin-bottom: 1px; }
.pol-type { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.7em; margin-bottom: .3em; font-weight: 600; color: var(--bleu-nuit); }
.pol-ligne { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pol-ligne .pol-lib { color: #6b7681; }
.visionneuse { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; }
.visionneuse[hidden] { display: none; }
.visionneuse .polaroid-grand { margin: 0; width: min-content; max-width: 92vw; padding: 14px 14px 0; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.polaroid-grand .pol-photo { aspect-ratio: auto; background: none; }
.polaroid-grand .pol-photo img { width: auto; height: auto; max-width: calc(92vw - 28px); max-height: calc(88vh - 150px); min-width: 260px; object-fit: contain; margin: 0 auto; }
.polaroid-grand .pol-texte { height: auto; font-size: 15px; padding: 12px 4px 16px; }
.polaroid-grand .pol-texte[hidden] { display: none; }
.polaroid-grand .pol-type { display: block; min-height: 0; }
.polaroid-grand .pol-ligne { white-space: normal; }
.visionneuse button { position: absolute; background: none; border: 0; color: #fff; font-size: 54px; cursor: pointer; padding: 10px 18px; line-height: 1; }
.v-fermer { top: 10px; right: 10px; }
.v-prec { left: 10px; top: 50%; transform: translateY(-50%); }
.v-suiv { right: 10px; top: 50%; transform: translateY(-50%); }

/* --- Contact ------------------------------------------------------------- */
.contact { padding: 40px 0 30px; }
.contact-intro { font-size: clamp(22px, 2.2vw, 32px); font-weight: 300; line-height: 1.4; margin-bottom: 40px; }
.contact-intro p { margin: 0; }
.contact-grille { display: grid; grid-template-columns: 1fr 300px; gap: 50px; }
.formulaire input, .formulaire textarea { width: 100%; font: inherit; font-size: 15px; padding: 10px 10px; border: 1px solid #ccc; border-radius: 2px; margin-bottom: 20px; color: #222; }
.formulaire textarea { min-height: 120px; resize: vertical; }
.formulaire input:focus, .formulaire textarea:focus { outline: 2px solid var(--bleu-vif); outline-offset: 0; border-color: transparent; }
.piege { position: absolute; left: -9999px; }
.bouton-rouge { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; background: var(--rouge); color: #fff; border: 0; border-bottom: 3px solid #a3070b; padding: 10px; font: 400 16px var(--police); cursor: pointer; text-decoration: none; }
.bouton-rouge:hover { background: #c40a0f; }
.bouton-rouge.inline { display: inline-flex; width: auto; padding: 10px 24px; }
.alerte { padding: 14px 16px; margin-bottom: 20px; border-radius: 3px; font-size: 16px; font-weight: 400; }
.alerte ul { margin: 0; padding-left: 18px; }
.alerte-ok { background: #e6f5ea; color: #145a28; border: 1px solid #a8d8b5; }
.alerte-erreur { background: #fdecec; color: #8a1014; border: 1px solid #f2b3b5; }
.contact-agences { text-align: center; }
.contact-agences h2 { font-weight: 400; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; font-size: 34px; margin-bottom: 8px; }
.contact-agences p { margin: 0 0 4px; font-size: 22px; }
.contact-agences .nom { font-weight: 400; }
.contact-agences a { text-decoration: none; word-break: break-word; }
.contact-agences hr { width: 190px; border: 0; border-top: 5px solid var(--rouge-fonce); margin: 40px auto; }

.mentions h2, .mentions h3 { font-weight: 700; margin-top: 1.2em; }

/* --- Pied de page -------------------------------------------------------- */
.site-footer { color: #fff; }
.footer-grid { background: var(--bleu-nuit); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 40px 20px 40px; max-width: none; }
.site-footer > .footer-grid { padding-left: max(20px, calc((100% - var(--largeur)) / 2 + 20px)); padding-right: max(20px, calc((100% - var(--largeur)) / 2 + 20px)); }
.footer-societe { text-align: center; }
.footer-logo { width: 340px; margin: 0 auto 18px; }
.adresse { font-weight: 500; font-size: 17px; line-height: 1.3; margin-bottom: 10px; }
.tel-grand { display: inline-flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 500; text-decoration: none; letter-spacing: .02em; }
.tel-grand .ico { width: 22px; height: 22px; }
.footer-agence { text-align: center; padding-top: 20px; }
.footer-agence h3 { font-weight: 500; font-size: 22px; padding-bottom: 10px; border-bottom: 2px solid #fff; margin-bottom: 18px; }
.footer-agence .nom { font-size: 21px; margin: 0; }
.footer-agence .mail { display: block; font-size: 16px; font-weight: 400; text-decoration: none; margin-bottom: 8px; }
.site-footer a:hover { color: #ffb3b5; }
.footer-menu { background: var(--bleu-menu); text-align: center; padding: 18px 10px; font-size: 13px; font-weight: 400; color: #c9d3dc; }
.footer-menu a { text-decoration: none; color: #c9d3dc; }
.footer-bas { background: var(--bleu-bas); padding: 22px 0; }
.footer-bas-inner { display: flex; align-items: center; justify-content: center; position: relative; }
.copyright { margin: 0; font-size: 12px; text-align: center; color: #b8c3cd; }
.credit { position: absolute; right: 20px; text-decoration: none; font-weight: 700; color: #cfd8e0; font-size: 15px; line-height: 1; }
.credit small { display: block; font-size: 8px; letter-spacing: .35em; font-weight: 400; }
.haut { position: fixed; right: 26px; bottom: 26px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(40,55,70,.85); color: #fff; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; }
.haut.visible { opacity: 1; pointer-events: auto; }
.haut svg { width: 20px; height: 20px; }

/* --- Mises en forme choisies dans l'éditeur (titres et textes, tous les thèmes) --- */
.c-rouge { color: var(--rouge) !important; -webkit-text-stroke: 0 !important; }
.c-bleu { color: var(--bleu-vif) !important; -webkit-text-stroke: 0 !important; }
.c-nuit { color: var(--bleu-nuit) !important; -webkit-text-stroke: 0 !important; }
.c-gris { color: #6b7785 !important; -webkit-text-stroke: 0 !important; }
.c-blanc { color: #fff !important; -webkit-text-stroke: 0 !important; }
.c-noir { color: #111 !important; -webkit-text-stroke: 0 !important; }
.t-petit { font-size: .8em; }
.t-grand { font-size: 1.25em; }
.t-tres-grand { font-size: 1.6em; line-height: 1.15; }

/* --- Aperçu du thème (gestionnaire connecté uniquement) ---------------- */
.choix-theme { position: fixed; left: 20px; bottom: 20px; z-index: 300; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 30px; background: rgba(6, 25, 42, .92); box-shadow: 0 8px 24px rgba(0,0,0,.25); font: 500 13px var(--police); }
.choix-theme span { color: #9fb1c3; padding: 0 8px 0 10px; }
.choix-theme a { color: #fff; text-decoration: none; padding: 7px 14px; border-radius: 20px; transition: background .2s; }
.choix-theme a:hover { background: rgba(255,255,255,.12); }
.choix-theme a.actif { background: #e01015; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1000px) {
  .grille-cartes, .grille-galerie { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-societe { grid-column: 1 / -1; }
  .cest-photo { width: 100%; opacity: .25; -webkit-mask-image: none; mask-image: none; }
  .cest-texte { margin-left: 0; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 8px 16px rgba(0,0,0,.12); display: none; }
  .menu.ouvert { display: block; }
  .menu ul { flex-direction: column; padding: 8px 20px 16px; gap: 0; }
  .menu a { border-bottom: 1px solid #eee; }
  .logo img { width: 250px; }
  .header-inner { min-height: 72px; }
  .deux-colonnes, .contact-grille { grid-template-columns: 1fr; }
  .illustration img { max-width: 300px; }
  .grille-points { grid-template-columns: 1fr; gap: 40px; }
  .grille-cartes, .grille-galerie { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .grille-galerie { gap: 20px 14px; }
  .polaroid { padding: 7px 7px 0; }
  .pol-texte { font-size: 11.5px; }
  .grille-regions { grid-template-columns: 1fr; gap: 30px; }
  .region + .region { border-left: 0; border-top: 1px solid rgba(255,255,255,.5); padding-top: 30px; }
  .bandeau-rouge h2 { letter-spacing: .15em; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .visionneuse .v-prec, .visionneuse .v-suiv { top: auto; bottom: 14px; transform: none; font-size: 46px; }
  .polaroid-grand .pol-photo img { max-height: calc(80vh - 150px); }
  .texte { font-size: 16px; }
  .justifie { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-logo { width: 260px; }
  .point { grid-template-columns: 80px 1fr; gap: 16px; }
  .numero { transform: scale(.72); transform-origin: top left; }
  .credit { position: static; margin-top: 12px; }
  .footer-bas-inner { flex-direction: column; }
  .logo-partenaire { width: 130px; height: 100px; }
}

/* --- Animation d'ouverture (première page de la visite) : le triangle se trace d'un seul trait ---
   départ en bas à droite -> bas à gauche -> sommet -> retour en bas à droite */
.intro-ecran { display: none; }
.intro .intro-ecran { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: #fff; transition: opacity .4s ease, visibility .4s; }
.theme-ludique .intro-ecran { background: #f4f6f9; }
.theme-immersif .intro-ecran { background: #07121d; }
.intro body { overflow: hidden; }
.intro-triangle { width: 132px; height: auto; overflow: visible; }
.intro-trace { fill: none; stroke: #536eff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 297; stroke-dashoffset: 297; }
.intro .intro-trace { animation: intro-trace 1.6s cubic-bezier(.65, 0, .35, 1) .1s forwards; }
.intro .intro-triangle { animation: intro-pose .4s ease-out 1.7s both; }
.intro-fin .intro-ecran { opacity: 0; visibility: hidden; }
.intro-fin .intro-triangle { transform: scale(1.15); transition: transform .4s ease-in; }
@keyframes intro-trace { to { stroke-dashoffset: 0; } }
@keyframes intro-pose { 0% { transform: scale(1); } 45% { transform: scale(1.06); } 100% { transform: scale(1); } }
