/* =========================================================
   VisiVit : feuille de style unique du site
   Flat design épuré, téléphone d'abord, sans framework.
   Les couleurs se changent ici, dans :root.
   ========================================================= */

:root {
  /* Couleurs du logo */
  --bleu: #1f4fd1;          /* iris du logo : liens, boutons */
  --bleu-fonce: #173ca3;    /* survol des boutons */
  --bleu-pale: #eef3fd;     /* fonds de section */
  --orange: #c2410c;        /* accent (texte possible : contraste suffisant sur blanc) */
  --orange-vif: #e2711d;    /* décor uniquement (pas pour du texte) */
  --peche: #fff4ea;         /* fond pêche, rappel de l'ancien site */

  /* Neutres */
  --encre: #1e2a3a;         /* texte principal, contour du logo */
  --ardoise: #34465a;
  --gris: #556270;          /* texte secondaire */
  --trait: #dde4ec;         /* bordures */
  --fond: #ffffff;

  --rayon: 10px;
  --largeur: 72rem;         /* largeur maximale du contenu */
  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--fond);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
h3, .h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

a { color: var(--bleu); text-underline-offset: .15em; }
a:hover { color: var(--bleu-fonce); }

:focus-visible { outline: 3px solid var(--bleu-fonce); outline-offset: 2px; border-radius: 4px; }
.pied :focus-visible, .appel :focus-visible { outline-color: #fff; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40em) { .conteneur { padding: 0 1.5rem; } }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Lien d'évitement (clavier) */
.evitement { position: absolute; left: -999px; top: 0; z-index: 100; padding: .6rem 1rem; background: var(--encre); color: #fff; }
.evitement:focus { left: 1rem; top: 1rem; color: #fff; }

.externe::after { content: " ↗"; font-size: .85em; }

/* ---------- Boutons ---------- */

.bouton {
  display: inline-block;
  padding: .75rem 1.4rem;
  border: 2px solid var(--bleu);
  border-radius: var(--rayon);
  background: var(--bleu);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
  transition: background-color .15s, border-color .15s, color .15s;
}
.bouton:hover { background: var(--bleu-fonce); border-color: var(--bleu-fonce); color: #fff; }
.bouton--contour { background: transparent; color: var(--bleu); }
.bouton--contour:hover { background: var(--bleu); color: #fff; }
.bouton--blanc { background: #fff; border-color: #fff; color: var(--bleu); }
.bouton--blanc:hover { background: var(--peche); border-color: var(--peche); color: var(--bleu-fonce); }

.boutons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.boutons--centre { justify-content: center; }
/* Sur téléphone, boutons sur toute la largeur : plus faciles à toucher */
@media (max-width: 30em) { .boutons .bouton { flex: 1 1 100%; } }

/* ---------- En-tête et menu ---------- */

.entete {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--trait);
}
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }

.marque {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--encre); text-decoration: none;
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1;
}
.marque:hover { color: var(--encre); }
.marque img { width: 52px; height: auto; }
.marque__com { color: var(--orange); }
@media (min-width: 60em) { .marque { font-size: 1.75rem; } .marque img { width: 64px; } }

.menu-bouton {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 2.75rem; padding: .5rem .8rem;
  border: 1px solid var(--trait); border-radius: var(--rayon);
  background: #fff; color: var(--encre);
  font: inherit; font-weight: 600; cursor: pointer;
}
.menu-bouton__icone, .menu-bouton__icone::before, .menu-bouton__icone::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.menu-bouton__icone::before, .menu-bouton__icone::after { content: ""; position: absolute; left: 0; }
.menu-bouton__icone::before { top: -6px; }
.menu-bouton__icone::after { top: 6px; }

.menu { display: none; }
.menu.ouvert {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--trait);
  box-shadow: 0 12px 24px rgba(30, 42, 58, .08);
}
.menu ul { list-style: none; margin: 0; padding: .5rem 1rem 1rem; }
.menu a {
  display: block; padding: .75rem .25rem;
  color: var(--encre); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--trait);
}
.menu a:hover, .menu a[aria-current] { color: var(--bleu); }
.menu .menu__contact { margin-top: 1rem; border: 0; color: #fff; }
.menu .menu__contact:hover, .menu .menu__contact[aria-current] { color: #fff; }

@media (min-width: 60em) {
  .menu-bouton { display: none; }
  .menu, .menu.ouvert { display: block; position: static; box-shadow: none; border: 0; }
  .menu ul { display: flex; align-items: center; gap: .25rem; padding: 0; }
  .menu a { border: 0; padding: .5rem .8rem; border-radius: var(--rayon); }
  .menu a[aria-current] { box-shadow: inset 0 -3px 0 var(--orange-vif); border-radius: 0; }
  .menu .menu__contact { margin: 0 0 0 .75rem; padding: .55rem 1.1rem; }
  .menu .menu__contact[aria-current] { box-shadow: none; border-radius: var(--rayon); background: var(--bleu-fonce); }
}

/* ---------- Sections ---------- */

.section { padding: 3rem 0; }
@media (min-width: 60em) { .section { padding: 4.5rem 0; } }
.section--pale { background: var(--bleu-pale); }
.section--peche { background: var(--peche); }
.section__titre { text-align: center; max-width: 42rem; margin: 0 auto 2.25rem; }
.section__titre p { color: var(--gris); }

.surtitre {
  display: inline-block; margin-bottom: .75rem;
  font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange);
}

/* ---------- Bandeau d'accueil ---------- */

.accroche { background: var(--peche); padding: 2.5rem 0 3rem; overflow: hidden; }
.accroche .conteneur { display: grid; gap: 2rem; align-items: center; }
.accroche h1 { margin-bottom: .45em; }
.accroche h1 span { color: var(--bleu); }
.accroche__texte { font-size: 1.15rem; color: var(--ardoise); max-width: 34rem; }
.accroche__texte strong { color: var(--encre); }
.accroche__image { max-width: 34rem; margin: 0 auto; width: 100%; }

@media (min-width: 60em) {
  .accroche { padding: 4.5rem 0; }
  .accroche .conteneur { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; }
}

/* ---------- Blocs, cartes, listes ---------- */

.deux-colonnes { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 60em) { .deux-colonnes { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

.grand-texte { font-size: 1.15rem; }
.texte-gris { color: var(--gris); }

.blocs { display: grid; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 48em) { .blocs--2 { grid-template-columns: repeat(2, 1fr); } .blocs--3 { grid-template-columns: repeat(3, 1fr); } }
.bloc {
  padding: 1.5rem;
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon);
}
.section--pale .bloc, .section--peche .bloc { border-color: transparent; }
.bloc h3 { font-size: 1.2rem; }
.bloc p:last-child, .bloc ul:last-child { margin-bottom: 0; }
.bloc p { color: var(--gris); }

.icone {
  display: grid; place-items: center;
  width: 3rem; height: 3rem; margin-bottom: 1rem;
  border-radius: 50%; background: var(--bleu-pale); color: var(--bleu);
}
.section--pale .icone { background: var(--peche); color: var(--orange); }
.icone svg { width: 1.5rem; height: 1.5rem; }

.etiquette {
  display: inline-block; margin-bottom: .6rem; padding: .15rem .6rem;
  border-radius: 999px; background: var(--peche); color: var(--orange);
  font-size: .8rem; font-weight: 700; letter-spacing: .03em;
}

/* Listes avec coches */
.coches { list-style: none; margin: 0 0 1rem; padding: 0; }
.coches li { position: relative; padding-left: 1.85rem; margin-bottom: .6rem; }
.coches li::before {
  content: ""; position: absolute; left: 0; top: .25em;
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--bleu-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4fd1' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.coches ul { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .3rem; }
.coches ul li { padding-left: 1.1rem; margin: 0; color: var(--ardoise); }
.coches ul li::before { top: .65em; width: .45rem; height: .45rem; background: var(--orange-vif); }
@media (min-width: 40em) { .coches ul { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }

/* Étapes numérotées */
.etapes { counter-reset: etape; list-style: none; margin: 0 0 1rem; padding: 0; }
.etapes li { counter-increment: etape; position: relative; padding-left: 3rem; margin-bottom: 1rem; min-height: 2.2rem; }
.etapes li::before {
  content: counter(etape); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 2.2rem; height: 2.2rem;
  border-radius: 50%; background: var(--bleu); color: #fff; font-weight: 700;
}

/* ---------- L'offre ---------- */

.offre { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 60em) { .offre { grid-template-columns: 1.5fr 1fr; gap: 2.5rem; } }

.prix {
  padding: 2rem 1.5rem; text-align: center;
  background: var(--bleu); color: #fff; border-radius: var(--rayon);
}
.prix p { margin: 0; }
.prix__montant { font-size: 3.2rem; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.prix__montant small { font-size: 1.1rem; font-weight: 600; letter-spacing: 0; }
.prix__mention { margin-top: .4rem !important; color: #dfe7fb; }
.prix .bouton { margin-top: 1.5rem; }
@media (min-width: 60em) { .prix { position: sticky; top: 6rem; } }

/* ---------- Appel à l'action ---------- */

.appel { background: var(--encre); color: #fff; text-align: center; padding: 3rem 0; }
.appel h2 { color: #fff; }
.appel p { max-width: 40rem; margin: 0 auto; color: #d5dde6; }

/* ---------- Fonctionnalités ---------- */

.fonction { display: flex; gap: 1rem; align-items: flex-start; }
.fonction .icone { flex: none; margin: 0; }
.fonction h3 { margin-bottom: .3em; }

/* ---------- Questions fréquentes ---------- */

.faq { max-width: 50rem; margin: 0 auto; }
.faq h2 { font-size: 1.35rem; margin: 2.5rem 0 1rem; }
.faq h2:first-child { margin-top: 0; }
.faq details { border: 1px solid var(--trait); border-radius: var(--rayon); background: #fff; margin-bottom: .6rem; }
.faq summary {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: 1rem 1.1rem; cursor: pointer; list-style: none;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; flex: none;
  display: grid; place-items: center; width: 1.6rem; height: 1.6rem;
  border-radius: 50%; background: var(--bleu-pale); color: var(--bleu); font-weight: 700; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] { border-color: var(--bleu); }
.faq summary:hover { color: var(--bleu); }
.faq__reponse { padding: 0 1.1rem 1rem; color: var(--ardoise); }
.faq__reponse p:last-child, .faq__reponse ul:last-child { margin-bottom: 0; }
.faq__reponse ul { padding-left: 1.2rem; }

/* ---------- Formulaires ---------- */

.colonnes-contact { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 60em) { .colonnes-contact { grid-template-columns: 1.6fr 1fr; gap: 3rem; } }

.formulaire { padding: 1.25rem; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); }
@media (min-width: 48em) { .formulaire { padding: 2rem; } }

.champs { display: grid; gap: 1rem; }
@media (min-width: 40em) { .champs--2 { grid-template-columns: 1fr 1fr; } }

.champ label { display: block; font-weight: 600; margin-bottom: .3rem; }
.champ__facultatif { font-weight: 400; color: var(--gris); font-size: .9rem; }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 2.9rem; padding: .7rem .8rem;
  border: 1px solid #a3b0be; border-radius: 8px; background: #fff;
  font: inherit; color: var(--encre);
}
.champ textarea { min-height: 9rem; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 3px solid var(--bleu-pale); border-color: var(--bleu); }
.champ [aria-invalid="true"] { border-color: #b42318; background: #fffafa; }
.champ__erreur { display: block; margin-top: .3rem; color: #b42318; font-size: .95rem; font-weight: 600; }
.champ__erreur:empty { display: none; }
.champ[hidden] { display: none; }

/* Champ piège pour les robots : hors écran, jamais vu ni atteint au clavier */
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.formulaire__envoi { margin-top: 1.25rem; }
.formulaire button[type="submit"] { font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 30em) { .formulaire button[type="submit"] { width: 100%; } }
.formulaire button[disabled] { opacity: .6; cursor: wait; }
.formulaire__rgpd { margin: 1.25rem 0 0; font-size: .9rem; color: var(--gris); }

/* Messages après envoi : affichés par le JavaScript, ou par l'ancre #envoi-… sans JavaScript */
.message-envoi { display: none; margin-bottom: 1.5rem; padding: 1rem 1.25rem; border-radius: var(--rayon); border-left: 5px solid; }
.message-envoi:target, .message-envoi.visible { display: block; }
.message-envoi h2 { font-size: 1.15rem; margin-bottom: .3rem; }
.message-envoi p { margin: 0; }
.message-envoi--ok { background: #ecf8f0; border-color: #1a7f45; color: #0f5130; }
.message-envoi--ko { background: #fdf0ee; border-color: #b42318; color: #7a1b10; }

.encart { padding: 1.5rem; background: var(--peche); border-radius: var(--rayon); }
.encart h2 { font-size: 1.2rem; }
.encart p { color: var(--ardoise); }
.encart p:last-child { margin-bottom: 0; }
.encart--espace { margin-top: 2.5rem; }

/* ---------- Pages de texte (mentions légales…) ---------- */

.page-titre { background: var(--peche); padding: 2.25rem 0; }
.page-titre h1 { margin: 0; font-size: clamp(1.8rem, 6vw, 2.5rem); }
.page-titre p { margin: .6rem 0 0; color: var(--ardoise); max-width: 44rem; }
.texte { max-width: 46rem; }
.texte h2 { font-size: 1.35rem; margin-top: 2rem; }
.texte h2:first-child { margin-top: 0; }
.texte dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0 0 1rem; }
.texte dt { font-weight: 600; }
.texte dd { margin: 0; }
@media (max-width: 30em) { .texte dl { grid-template-columns: 1fr; gap: 0; } .texte dd { margin-bottom: .6rem; } }

/* ---------- Pied de page ---------- */

.pied { background: var(--encre); color: #d5dde6; padding: 2.5rem 0 1.5rem; font-size: .975rem; }
.pied a { color: #fff; }
.pied a:hover { color: #ffd2ad; }
.pied__colonnes { display: grid; gap: 2rem; }
@media (min-width: 48em) { .pied__colonnes { grid-template-columns: 1.6fr 1fr; } }
.pied h2 { font-size: 1rem; color: #fff; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .8rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: .45rem; }
.pied__slogan { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: .4rem; }
.pied__bas {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  margin-top: 2rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: .9rem; color: #b9c5d0;
}
.pied__bas p { margin: 0; }
.pied__bas ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.pied__bas li { margin: 0; }

/* Moins d'animations si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
