:root {
  --bleu: #1A6FAE;
  --bleu-fonce: #0F4F80;
  --texte: #12324A;
  --texte-2: #3E5A70;
  --fond-clair: #EAF3FA;
  --fond-tres-clair: #F6FAFD;
  --bordure: #DCE8F2;
  --fond: #FFFFFF;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--texte);
  background: var(--fond);
}

h1, h2, h3 { font-weight: 600; line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; margin-bottom: 1em; }
h3 { font-size: 1.05rem; }
p { color: var(--texte-2); margin: 0 0 1em; }
a { color: var(--bleu); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.etroit { max-width: 760px; }

section { padding: 56px 0; }
.hero { position: relative; overflow: hidden; background: var(--fond-clair) url("assets/photos/01-atelier-prothesiste-vue-ensemble.webp") center 60% / cover no-repeat; }
.alt { background: var(--fond-tres-clair); }

.icon { width: 32px; height: 32px; color: var(--bleu); flex-shrink: 0; }

/* Boutons */
.btn {
  display: inline-block;
  text-align: center;
  padding: 12px 20px;
  background: var(--bleu);
  color: var(--fond);
  border: 2px solid var(--bleu);
  border-radius: 6px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
}
.btn:hover { background: var(--bleu-fonce); border-color: var(--bleu-fonce); }
.btn-clair { background: var(--fond); color: var(--bleu); }
.btn-clair:hover { color: var(--fond); }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--fond);
  border-bottom: 1px solid var(--bordure);
}
.header-inner { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.logo img { display: block; height: 44px; width: auto; }
.header-tel { margin-left: auto; font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (max-width: 359px) {
  .logo img { height: 34px; }
  .header-tel { font-size: .85rem; }
}
.header-btn { display: none; }
.menu-toggle { background: none; border: 0; padding: 4px; cursor: pointer; display: flex; }
.menu-toggle .icon { width: 28px; height: 28px; }

#menu {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--fond);
  border-bottom: 1px solid var(--bordure);
  padding: 8px 20px 16px;
}
#menu.ouvert { display: block; }
#menu a { display: block; padding: 12px 0; color: var(--texte); text-decoration: none; border-bottom: 1px solid var(--bordure); }
#menu li:last-child a { border-bottom: 0; }

/* Haut de page */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .65) 30%, rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, .05) 100%);
}
@media (max-width: 899px) {
  /* Mobile : le texte occupe toute la largeur, le dégradé reste plus soutenu */
  .hero::before { background: linear-gradient(180deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .6) 100%); }
}
.hero-contenu { position: relative; z-index: 2; text-shadow: 0 1px 6px rgba(18, 50, 74, .9), 0 0 2px rgba(18, 50, 74, .7); }
.hero h1, .hero .lead, .hero .atouts-courts strong { color: var(--fond); }
.hero .surtitre, .hero .atouts-courts span { color: var(--fond-clair); }
.hero .atouts-courts { border-top-color: rgba(255, 255, 255, .5); }
.hero .btn { text-shadow: none; background: var(--fond); color: var(--bleu); border-color: var(--fond); }
.hero .btn:hover { background: var(--fond-clair); border-color: var(--fond-clair); color: var(--bleu-fonce); }
.hero .btn-clair { background: transparent; color: var(--fond); }
.hero .btn-clair:hover { background: var(--fond); color: var(--bleu); }
.hero { padding-top: 48px; padding-bottom: 56px; }
.surtitre { color: var(--bleu); font-weight: 600; font-size: .9rem; margin-bottom: .75em; }
.hero .lead { font-size: 1.05rem; max-width: 640px; }
.actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin: 24px 0 32px; }
.actions .btn { padding: 9px 12px; font-size: .8rem; }
.atouts-courts { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; border-top: 1px solid var(--bordure); }
.atouts-courts strong { color: var(--texte); }
.atouts-courts span { color: var(--texte-2); font-size: .9rem; }

/* Présentation */
.deux-colonnes { display: grid; gap: 28px; }
.video-presentation { display: block; width: 100%; max-width: 320px; margin: 0 auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; border: 1px solid var(--bordure); background: var(--fond-clair); }
.presentation p { font-size: 1.05rem; line-height: 1.75; }
.devise { color: var(--texte); padding-left: 16px; border-left: 3px solid var(--bleu); }
.signature { font-weight: 600; color: var(--texte); margin-bottom: 0; }

/* Prestations */
.grille-prestations { display: grid; grid-auto-rows: 1fr; gap: 20px; }
.carte { display: flex; flex-direction: column; background: var(--fond); border: 1px solid var(--bordure); border-radius: 10px; padding: 16px; }
.carte-photo { aspect-ratio: 1; overflow: hidden; border-radius: 6px; margin-bottom: 12px; background: var(--fond-clair); }
.carte-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.carte h3 { margin: 0 0 .3em; }
.carte p { margin: 0; }

/* Photos des cartes : une photo à la fois, flèches pour changer */
.carte-photo { position: relative; }
.carte-photo img { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.carte-photo img.actif { opacity: 1; }
.photo-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; color: var(--bleu); background: rgba(255, 255, 255, .92); border: 1px solid var(--bordure); border-radius: 50%; cursor: pointer; }
.photo-nav:hover { background: var(--fond); border-color: var(--bleu); }
.photo-nav:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
.photo-nav .icon { width: 22px; height: 22px; }
.photo-prec { left: 10px; }
.photo-suiv { right: 10px; }
.photo-compteur { position: absolute; right: 10px; bottom: 10px; z-index: 1; padding: 3px 10px; font-size: .8rem; font-weight: 600; color: var(--texte); background: rgba(255, 255, 255, .92); border-radius: 999px; }
/* Avec une souris : flèches et compteur n'apparaissent qu'au survol de la photo (sur écran tactile, ils restent visibles) */
@media (hover: hover) {
  .photo-nav, .photo-compteur { opacity: 0; transition: opacity .2s; }
  .carte-photo:hover .photo-nav, .carte-photo:hover .photo-compteur,
  .carte-photo:focus-within .photo-nav, .carte-photo:focus-within .photo-compteur { opacity: 1; }
}

/* Matériaux */
.materiaux { background: var(--bleu-fonce); text-align: center; }
.materiaux h2 { color: var(--fond); margin-bottom: .4em; }
.materiaux h2::after { content: ""; display: block; width: 48px; height: 3px; margin: 16px auto 0; background: var(--fond-clair); }
.materiaux .intro strong { font-weight: 600; }
.materiaux .intro { color: var(--fond); font-size: 1.05rem; margin: 24px auto 28px; max-width: 760px; }
.cartes-materiaux { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 28px; }
.cartes-materiaux li { background: var(--fond); color: var(--texte); font-weight: 600; padding: 24px 12px; border-radius: 6px; }
.engagements { display: grid; gap: 14px; text-align: left; background: var(--bleu); border-left: 4px solid var(--fond-clair); border-radius: 6px; padding: 24px; }
.engagements li { display: flex; align-items: flex-start; gap: 12px; color: var(--fond); }
.engagements .icon { color: var(--fond); width: 22px; height: 22px; margin-top: 3px; }

/* Atouts */
.grille-atouts { display: grid; gap: 16px; }
.grille-atouts li { background: var(--fond); border: 1px solid var(--bordure); border-radius: 10px; padding: 20px; }
.grille-atouts .icon { margin-bottom: 12px; }
.grille-atouts p { margin: 0; }

/* Étapes */
.etapes { display: grid; gap: 20px; counter-reset: etape; }
.etapes li { position: relative; padding-left: 56px; counter-increment: etape; }
.etapes li::before {
  content: counter(etape);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bleu); color: var(--fond);
  font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.etapes p { margin: 0; }

/* Zone */
.etroit p:last-child { margin-bottom: 0; }
.zone p:last-child { margin-bottom: 0; }
.carte-zone { width: 100%; max-width: 360px; margin: 0 auto; border-radius: 10px; border: 1px solid var(--bordure); }

/* Questions */
details { border-bottom: 1px solid var(--bordure); }
details:first-of-type { border-top: 1px solid var(--bordure); }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--bleu); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "−"; }
summary:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
details p { margin: 0 0 16px; }

/* Contact */
.contact { background: var(--bleu); padding: 36px 0; }
.contact h2 { margin-bottom: .6em; }
.contact h2, .contact p, .contact a, .contact .icon, .coordonnees span { color: var(--fond); }
.coordonnees { display: grid; gap: 12px; margin-bottom: 16px; }
.coordonnees li { display: flex; align-items: center; gap: 14px; }
.coordonnees { font-size: 1.05rem; }
.coordonnees .icon { width: 28px; height: 28px; flex: none; }
.contact p { margin: 0; }
.contact-grille { display: grid; gap: 32px; }

/* Formulaire de devis */
.formulaire { background: var(--fond); border-radius: 10px; padding: 20px; display: grid; gap: 14px; }
.contact .titre-devis { margin: 8px 0 16px; font-size: 1.6rem; color: var(--fond); }
.devis-entete { padding-bottom: 14px; border-bottom: 2px dashed var(--bordure); }
.devis-entete img { display: block; height: 44px; width: auto; }
.formulaire .pointilles { margin: 0; border: 0; border-top: 2px dashed var(--bordure); }
.formulaire label { display: block; font-size: .9rem; font-weight: 600; color: var(--texte); margin-bottom: 4px; }
.formulaire input, .formulaire select, .formulaire textarea { width: 100%; font: inherit; color: var(--texte); background: var(--fond); border: 1px solid var(--bordure); border-radius: 6px; padding: 10px 12px; }
.formulaire textarea { resize: vertical; }
.formulaire input:focus-visible, .formulaire select:focus-visible, .formulaire textarea:focus-visible { outline: 2px solid var(--bleu); outline-offset: 1px; border-color: var(--bleu); }
.contact .formulaire .aide-formulaire { color: var(--texte-2); font-size: .85rem; margin: 0; }
.formulaire .btn { justify-self: start; cursor: pointer; }
.contact .formulaire .mention-donnees { color: var(--texte-2); font-size: .85rem; }
.contact .formulaire .mention-donnees a { color: var(--bleu); }

/* Mentions légales */
.retour { margin-left: auto; font-size: .9rem; text-decoration: none; }
.mentions h1 { margin-bottom: 1em; }
.mentions h2 { font-size: 1.2rem; margin: 1.8em 0 .5em; }

/* Pied de page */
.site-footer { background: var(--bleu-fonce); padding: 32px 0; color: var(--fond); }
.pied { display: grid; gap: 16px; }
.pied img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.site-footer address { font-style: normal; font-size: .9rem; }
.site-footer a { color: var(--fond); }

@media (min-width: 700px) {
  .logo img { height: 56px; }
  .carte-photo { aspect-ratio: 4 / 5; margin-bottom: 16px; }
  .actions { gap: 12px; }
  .actions .btn { padding: 12px 20px; font-size: .9rem; }
  .atouts-courts { flex-direction: row; gap: 32px; }
  .grille-prestations { grid-template-columns: repeat(4, 1fr); }
  .carte { grid-column: span 2; }
  .carte:last-child { grid-column: 2 / span 2; }
  .grille-atouts { grid-template-columns: repeat(2, 1fr); }
  .etapes { grid-template-columns: repeat(2, 1fr); }
  .contact h2, .contact-infos p { text-align: center; }
  .coordonnees { grid-template-columns: repeat(2, auto); justify-content: center; gap: 16px 56px; }
  .coordonnees { font-size: 1.25rem; }
  .coordonnees .icon { width: 32px; height: 32px; }
  .contact-infos > p { font-size: 1.15rem; }
  .contact-grille { gap: 36px; }
  .formulaire { max-width: 820px; width: 100%; margin-inline: auto; }
}

@media (min-width: 900px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  section { padding: 80px 0; }
  .contact { padding: 48px 0; }
  .hero { padding-top: 80px; padding-bottom: 80px; }
  .hero h1 { max-width: 820px; }
  .deux-colonnes { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 56px; }
  .zone { grid-template-columns: 360px 1fr; }
  .presentation { grid-template-columns: 380px 1fr; gap: 56px; }
  .video-presentation { max-width: none; margin: 0; }
  .presentation > div { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; }
  .presentation h2 { margin-top: 0; margin-bottom: 0; }
  .presentation p { font-size: 1.2rem; line-height: 1.85; margin-bottom: 0; }
  .presentation .signature { margin-bottom: 0; }
  .logo img { height: 80px; }
  .menu-toggle { display: none; }
  .header-tel { display: none; }
  .header-btn { display: inline-block; padding: 10px 18px; }
  #menu { display: block; position: static; margin-left: auto; border: 0; padding: 0; background: none; }
  #menu ul { display: flex; gap: 24px; }
  #menu a { display: inline; padding: 0; border: 0; font-size: .9rem; }
  #menu a:hover { color: var(--bleu); }
  .grille-prestations { grid-template-columns: repeat(6, 1fr); gap: 24px; }
  .carte:nth-child(4) { grid-column: 2 / span 2; }
  .carte:nth-child(5) { grid-column: 4 / span 2; }
  .grille-atouts { grid-template-columns: repeat(3, 1fr); }
  .cartes-materiaux { grid-template-columns: repeat(4, 1fr); }
  .etapes { grid-template-columns: repeat(4, 1fr); }
  .pied { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
}

@media (min-width: 700px) {
  .formulaire { grid-template-columns: repeat(2, 1fr); column-gap: 16px; padding: 28px; }
  .formulaire .devis-entete, .formulaire .pointilles, .formulaire .champ-large, .formulaire .btn, .formulaire .mention-donnees { grid-column: 1 / -1; }
  .contact .titre-devis { margin-top: 20px; font-size: 2rem; text-align: center; }
  .devis-entete img { height: 56px; }
}

/* Mobile : cartes de prestations en deux colonnes, plus compactes */
@media (max-width: 699px) {
  .grille-prestations { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .carte { padding: 8px; }
  .carte-photo { aspect-ratio: 4 / 5; margin-bottom: 8px; }
  .carte h3 { font-size: .92rem; }
  .carte p { font-size: .8rem; line-height: 1.4; }
  .carte:last-child { grid-column: 1 / -1; width: calc(50% - 6px); justify-self: center; }
  .photo-nav { width: 24px; height: 24px; background: rgba(255, 255, 255, .45); border-color: transparent; color: rgba(18, 50, 74, .7); }
  .photo-nav .icon { width: 14px; height: 14px; }
  .photo-prec { left: 6px; }
  .photo-suiv { right: 6px; }
  .photo-compteur { right: 6px; bottom: 6px; padding: 1px 7px; font-size: .65rem; background: rgba(255, 255, 255, .6); }
}

/* Badge « Powered by Netlify » (iframe injecté par Netlify sur l'hébergement gratuit) : masqué à la demande de Jules. Peut cesser de fonctionner si Netlify change son badge. */
#nl-badge-frame { display: none !important; }

/* Photo agrandie (Prestations) */
.carte-photo img.actif { cursor: zoom-in; }
html.agrandi-ouvert { overflow: hidden; }
.agrandi { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(18, 50, 74, .96); }
.agrandi[open] { display: flex; align-items: center; justify-content: center; }
.agrandi-photo { max-width: 92vw; max-height: 84vh; max-height: 84dvh; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.agrandi-fermer, .agrandi-nav { position: absolute; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: var(--texte); background: rgba(255, 255, 255, .92); border: 0; border-radius: 50%; cursor: pointer; }
.agrandi-fermer:hover, .agrandi-nav:hover { background: var(--fond); }
.agrandi-fermer:focus-visible, .agrandi-nav:focus-visible { outline: 2px solid var(--fond); outline-offset: 2px; }
.agrandi-fermer { top: 16px; right: 16px; }
.agrandi-nav { top: 50%; transform: translateY(-50%); }
.agrandi-prec { left: 16px; }
.agrandi-suiv { right: 16px; }
.agrandi-compteur { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); padding: 3px 12px; font-size: .85rem; font-weight: 600; color: var(--texte); background: rgba(255, 255, 255, .92); border-radius: 999px; }
.agrandi.seule .agrandi-nav, .agrandi.seule .agrandi-compteur { display: none; }
@media (max-width: 699px) {
  .agrandi-nav { width: 36px; height: 36px; background: rgba(255, 255, 255, .6); }
  .agrandi-prec { left: 8px; }
  .agrandi-suiv { right: 8px; }
}
