/* DFT Informatique — styles complémentaires à Tailwind */
/* Police Archivo (variable : graisse 100-900, largeur 62-125 %), hébergée sur le site */
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(fonts/archivo-latin.woff2) format('woff2-variations'), url(fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-ext.woff2) format('woff2-variations'), url(fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }


:root {
  --encre: #24282C; --papier: #F3F5F7; --trait: #D6DDE3;
  --jaune: #E6CC1F; --vertf: #2A7A1E; --rouge: #C9221C; --vert: #3BA22A;
}
html { scroll-behavior: smooth; }
body { font-family: 'Archivo', system-ui, sans-serif; font-variation-settings: "wdth" 100; line-height: 1.55; }
.font-wide { font-variation-settings: "wdth" 115; }

/* Titres : Archivo élargi */
.display {
  font-variation-settings: "wdth" 118; font-weight: 800;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.02em;
}
.h2 {
  font-variation-settings: "wdth" 115; font-weight: 800;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.08; letter-spacing: -0.015em;
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: rgb(36 40 44 / .78); line-height: 1.55; }

/* Accueil : les trois phrases-métiers */
.heroline {
  position: relative; display: grid; grid-template-columns: 1fr; gap: .4rem;
  padding: 1.4rem 0 1.5rem 1.6rem; border-bottom: 1px solid var(--encre);
  text-decoration: none; color: var(--encre);
}
.heroline-bar { position: absolute; left: 0; top: 1.55rem; bottom: 1.65rem; width: 6px; border-radius: 2px;
  transition: width .35s cubic-bezier(.2,.7,.2,1); }
.heroline-txt {
  position: relative; font-variation-settings: "wdth" 125; font-weight: 800;
  font-size: clamp(2rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -0.025em;
}
.heroline-sub { position: relative; color: rgb(36 40 44 / .72); font-size: 1.05rem; }
.heroline:hover .heroline-bar, .heroline:focus-visible .heroline-bar { width: calc(100% + 0px); opacity: .22; }
.heroline:focus-visible { outline: 3px solid var(--encre); outline-offset: 4px; }
@media (min-width: 1024px) {
  .heroline { grid-template-columns: 1fr 17rem; align-items: center; padding-left: 2rem; }
  .heroline-sub { text-align: right; }
}
/* Seule animation automatique : les trois lignes au chargement */
@media (prefers-reduced-motion: no-preference) {
  .heroline-bar { animation: grow .7s cubic-bezier(.2,.7,.2,1) both; transform-origin: bottom; }
  li:nth-child(2) .heroline-bar { animation-delay: .12s; }
  li:nth-child(3) .heroline-bar { animation-delay: .24s; }
  @keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .heroline-bar { transition: none; } }

/* Navigation */
.navlink { padding: .5rem .75rem; border-radius: .4rem; font-weight: 500; position: relative; }
.navlink { color: rgb(255 255 255 / .88); }
.navlink:hover { background: rgb(255 255 255 / .08); color: #fff; }
.navlink[aria-current="page"] { color: #fff; }
.navlink[aria-current="page"]::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .1rem; height: 3px; border-radius: 2px; background: #fff; }
.navlink[data-c="jaune"][aria-current="page"]::after { background: var(--jaune); }
.navlink[data-c="rouge"][aria-current="page"]::after { background: var(--rouge); }
.navlink[data-c="vert"][aria-current="page"]::after { background: var(--vert); }
.panel { border-top: 1px solid rgb(255 255 255 / .12); background: var(--encre); }

/* Boutons */
.btn-primary, .btn-ghost, .btn-jaune, .btn-ghost-inv, .btn-vert {
  display: inline-flex; align-items: center; gap: .5rem; border-radius: .5rem;
  padding: .55rem 1rem; font-weight: 600; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--encre); color: #fff; }
.btn-primary:hover { background: #3a4046; }
.btn-ghost { border: 1.5px solid var(--encre); color: var(--encre); }
.btn-ghost:hover { background: var(--encre); color: #fff; }
.btn-jaune { background: var(--jaune); color: var(--encre); }
.btn-vert { background: var(--vertf); color: #fff; }
.btn-vert:hover { background: #22661a; }
.btn-jaune:hover { background: #f2db3a; }
.btn-ghost-inv { border: 1.5px solid rgb(255 255 255 / .6); color: #fff; }
.btn-ghost-inv:hover { background: #fff; color: var(--encre); }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; }
header :focus-visible, .bg-encre :focus-visible { outline-color: var(--jaune); }

.callbtn { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem; background: #fff;
  border-left-width: 6px; border-radius: .5rem; box-shadow: 0 0 0 1px var(--trait) inset; }
.callbtn:hover { box-shadow: 0 0 0 2px var(--encre) inset; }

.dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; }

/* Choix par boutons (formulaire, filtres) */
.chip { padding: .5rem .9rem; border-radius: 999px; border: 1.5px solid var(--trait); font-weight: 500; background: #fff; color: var(--encre); }
.chip:hover { border-color: var(--encre); }
.chip[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: #fff; }
.chip[data-c="jaune"][aria-pressed="true"] { background: var(--jaune); border-color: var(--jaune); color: var(--encre); }
.chip[data-c="rouge"][aria-pressed="true"] { background: var(--rouge); border-color: var(--rouge); }
.chip[data-c="vert"][aria-pressed="true"] { background: var(--vert); border-color: var(--vert); }

.field { display: grid; gap: .35rem; }
.field > span { font-weight: 600; font-size: .95rem; }
.field input, .field textarea { width: 100%; border: 1.5px solid var(--trait); border-radius: .45rem; padding: .7rem .85rem; background: var(--papier); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--rouge); background: #fff; box-shadow: 0 0 0 3px rgb(201 34 28 / .18); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #C2410C; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Avis */
.avis-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .avis-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .avis-grid { grid-template-columns: repeat(6, 1fr); }
  .avis-grid > .avis { grid-column: span 2; }
  .avis-grid > .avis:nth-child(-n+2) { grid-column: span 3; }
  .avis-grid > .avis:nth-child(-n+2) .avis-texte { font-size: 1.15rem; }
}
.avis-grid[hidden] { display: none; }
.avis { display: flex; flex-direction: column; }
.avis-texte { margin-top: .75rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.avis figcaption { margin-top: auto; padding-top: 1rem; }
.avis { background: #fff; border-radius: 1rem; padding: 1.6rem; border-top: 5px solid var(--jaune); box-shadow: 0 0 0 1px var(--trait) inset; }
.google-note { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.2rem; border: 1.5px solid var(--encre); border-radius: .6rem; }

/* Offres sites */
.offre { background: #fff; padding: 2rem; display: flex; flex-direction: column; gap: .9rem; }
.offre-t { font-variation-settings: "wdth" 115; font-weight: 800; font-size: 1.45rem; padding-bottom: .9rem; border-bottom: 4px solid var(--rouge); align-self: flex-start; }
.offre p { color: rgb(36 40 44 / .8); }
.offre-pour { margin-top: auto; font-size: .95rem; color: rgb(36 40 44 / .6) !important; }

/* Étapes (vraie séquence) */
.etape-n { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 3px solid; font-variation-settings: "wdth" 115; font-weight: 800; font-size: 1.1rem; }

/* Compte à rebours */
.countdown { border-left: 6px solid var(--vert); padding-left: 1.5rem; }

/* FAQ */
.faq { border-top: 1px solid var(--trait); }
.faq:last-child { border-bottom: 1px solid var(--trait); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; position: relative;
  font-variation-settings: "wdth" 112; font-weight: 700; font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .95rem; font-size: 1.6rem; font-weight: 400; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 1.3rem; color: rgb(36 40 44 / .8); max-width: 62ch; }

.real[hidden] { display: none; }

.prose-ml h2 { font-variation-settings: "wdth" 112; font-weight: 800; font-size: 1.3rem; margin: 2rem 0 .6rem; }
.prose-ml p { color: rgb(36 40 44 / .82); }

/* Contenus à fournir par DFT : bien visibles, à retirer une fois remplis */
.todo { outline: 2px dashed var(--jaune); outline-offset: 2px; background: rgb(242 183 5 / .14); border-radius: 2px; }

/* Visuels : illustration SVG, remplacée par la photo si elle existe */
.visuel { position: relative; margin: 0; border-radius: 1.5rem; overflow: hidden; aspect-ratio: 4 / 3; }
.visuel svg { display: block; width: 100%; height: 100%; }
.visuel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bg-jaunep .visuel svg rect:first-child, .bg-rougep .visuel svg rect:first-child, .bg-vertp .visuel svg rect:first-child { fill: #fff; }
.badge { display: inline-block; padding: .3rem .85rem; border-radius: 999px; background: #fff; border: 1.5px solid var(--vert); color: var(--vertf); font-weight: 600; font-size: .875rem; }

/* ---------- Hero : carrousel des 3 activités ---------- */
.hero-cadre { position: relative; overflow: hidden; height: clamp(520px, 68vh, 640px); background: var(--encre); }
@media (min-width: 640px) { .hero-cadre { border-radius: 1.5rem; } }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.hero-slide[data-active] { opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 1; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgb(20 22 25 / .92) 0%, rgb(20 22 25 / .55) 45%, rgb(20 22 25 / .1) 75%); }
@media (min-width: 900px) {
  .hero-slide::after { background: linear-gradient(90deg, rgb(20 22 25 / .9) 0%, rgb(20 22 25 / .7) 38%, rgb(20 22 25 / .05) 72%); }
}
.hero-txt { position: absolute; z-index: 2; left: 0; right: 0; bottom: 6.75rem; padding: 0 1.5rem; color: #fff; max-width: 52rem; }
@media (min-width: 900px) { .hero-txt { top: 50%; bottom: auto; transform: translateY(-58%); padding: 0 3.5rem; } }
.hero-kicker { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: rgb(255 255 255 / .9); }
.hero-titre { margin-top: .9rem; font-variation-settings: "wdth" 118; font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.03; letter-spacing: -0.02em; color: #fff; text-wrap: balance; max-width: 17ch; }
.hero-sous { margin-top: 1rem; font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgb(255 255 255 / .85); max-width: 46ch; }
/* Texte qui arrive avec sa diapositive */
@media (prefers-reduced-motion: no-preference) {
  .hero-slide .hero-txt > * { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .hero-slide[data-active] .hero-txt > * { opacity: 1; transform: none; }
  .hero-slide[data-active] .hero-txt > :nth-child(2) { transition-delay: .12s; }
  .hero-slide[data-active] .hero-txt > :nth-child(3) { transition-delay: .22s; }
  .hero-slide[data-active] .hero-txt > :nth-child(4) { transition-delay: .32s; }
  .hero-slide[data-active] img { animation: heroZoom 7s ease-out both; }
  @keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
}
/* Onglets : une activité = un bouton, la barre montre le temps restant */
.hero-tabs { position: absolute; z-index: 3; left: 1.5rem; right: 1.5rem; bottom: 1.4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (min-width: 900px) { .hero-tabs { left: 3.5rem; right: auto; width: min(36rem, 60%); } }
.hero-tab { text-align: left; color: rgb(255 255 255 / .7); font-weight: 600; font-size: .9rem; padding-top: .1rem; }
.hero-tab:hover, .hero-tab[aria-pressed="true"] { color: #fff; }
.hero-tab-barre { display: block; height: 4px; border-radius: 2px; background: rgb(255 255 255 / .28); margin-bottom: .55rem; overflow: hidden; }
.hero-tab-barre > span { display: block; height: 100%; width: 0; }
.hero-tab[aria-pressed="true"] .hero-tab-barre > span { width: 100%; }
.hero-cadre.anime .hero-tab[aria-pressed="true"] .hero-tab-barre > span { animation: heroProgres var(--duree, 6s) linear both; }
.hero-cadre.pause .hero-tab[aria-pressed="true"] .hero-tab-barre > span { animation-play-state: paused; }
@keyframes heroProgres { from { width: 0; } to { width: 100%; } }
.hero-tab:focus-visible { outline-color: var(--jaune); }
@media (max-width: 480px) { .hero-tab { font-size: .78rem; } }

/* Titre principal de l'accueil (au-dessus du carrousel) */
.hero-h1 { font-size: .95rem; font-weight: 600; color: rgb(36 40 44 / .72); padding: .9rem 1.25rem .8rem; line-height: 1.35; }
@media (min-width: 640px) { .hero-h1 { padding: .2rem 0 .9rem; font-size: 1rem; } }
