/* Urbacanis – feuille de style
   Couleurs reprises du logo validé dans Canva */
:root {
  --vert: #2E5E4E;
  --vert-fonce: #1F4337;
  --vert-clair: #E3ECE6;
  --bleu: #2F6FAF;
  --bleu-fonce: #24588C;
  --creme: #F8F1E6;
  --creme-fonce: #EFE5D4;
  --blanc: #FFFFFF;
  --texte: #24302B;
  --texte-doux: #55615B;
  --bord: #DDD3C2;
  --rayon: 14px;
  --ombre: 0 6px 24px rgba(31, 67, 55, .08);
  --max: 1120px;
  --police: "Nunito", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--creme);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); }
a:hover { color: var(--bleu-fonce); }
h1, h2, h3 { color: var(--vert); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.conteneur { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.lien-evitement { position: absolute; left: -999px; top: 0; background: var(--vert); color: #fff; padding: 10px 16px; z-index: 100; }
.lien-evitement:focus { left: 10px; }

/* En-tête */
.entete { background: var(--creme); border-bottom: 1px solid var(--bord); position: sticky; top: 0; z-index: 50; }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.marque img { height: 52px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--texte); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover { background: var(--vert-clair); color: var(--vert); }
.nav a[aria-current="page"] { color: var(--vert); background: var(--vert-clair); }
.nav .bouton { margin-left: 8px; }
.nav .bouton:hover { background: var(--bleu-fonce); color: #fff; }
.menu-bouton { display: none; background: none; border: 1px solid var(--bord); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 700; color: var(--vert); cursor: pointer; }

/* Boutons */
.bouton {
  display: inline-block; background: var(--bleu); color: #fff !important; text-decoration: none;
  padding: 13px 24px; border-radius: 10px; font-weight: 700; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  transition: background .15s ease, transform .15s ease;
}
.bouton:hover { background: var(--bleu-fonce); transform: translateY(-1px); }
.bouton-secondaire { background: transparent; color: var(--vert) !important; border: 2px solid var(--vert); padding: 11px 22px; }
.bouton-secondaire:hover { background: var(--vert); color: #fff !important; }
.lien-fleche { font-weight: 700; text-decoration: none; }
.lien-fleche::after { content: " →"; }

/* Bannière d'accueil */
.hero { padding: 56px 0 64px; }
.hero .conteneur { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero p.chapeau { font-size: 1.25rem; color: var(--texte-doux); max-width: 34ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-image { border-radius: 24px; overflow: hidden; box-shadow: var(--ombre); aspect-ratio: 4 / 5; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* En-tête de page intérieure */
.page-titre { padding: 56px 0 24px; }
.page-titre p { font-size: 1.2rem; color: var(--texte-doux); max-width: 60ch; }

/* Sections */
.section { padding: 56px 0; }
.section-blanche { background: var(--blanc); }
.section-verte { background: var(--vert); color: #fff; }
.section-verte h2, .section-verte h3 { color: #fff; }
.intro { max-width: 68ch; }
.etroit { max-width: 760px; }

/* Grilles et cartes */
.grille { display: grid; gap: 22px; }
.grille-2 { grid-template-columns: repeat(2, 1fr); }
.grille-3 { grid-template-columns: repeat(3, 1fr); }
.grille-4 { grid-template-columns: repeat(4, 1fr); }
.carte { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 26px; box-shadow: var(--ombre); }
.section-blanche .carte { background: var(--creme); box-shadow: none; }
.carte h3 { margin-bottom: .4em; }
.carte p:last-child { margin-bottom: 0; }
.icone { width: 48px; height: 48px; border-radius: 12px; background: var(--vert-clair); color: var(--vert); display: grid; place-items: center; margin-bottom: 14px; }
.icone svg { width: 26px; height: 26px; }
.carte-mise-en-avant { border: 2px solid var(--bleu); position: relative; }
.etiquette { display: inline-block; background: var(--bleu); color: #fff; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; margin-bottom: 10px; }

/* Encadré */
.encadre { background: var(--creme-fonce); border-left: 5px solid var(--vert); border-radius: 0 var(--rayon) var(--rayon) 0; padding: 22px 26px; }
.encadre h3 { margin-bottom: .3em; }

/* Étapes */
.etapes { list-style: none; padding: 0; margin: 0; counter-reset: etape; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.etapes li { counter-increment: etape; background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 26px; position: relative; }
.etapes li::before { content: counter(etape); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--vert); color: #fff; font-weight: 800; margin-bottom: 12px; }
.etapes strong { display: block; color: var(--vert); font-size: 1.1rem; margin-bottom: 4px; }

/* Chiffres */
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.chiffre { background: var(--blanc); border-radius: var(--rayon); padding: 26px; border: 1px solid var(--bord); }
.chiffre .nombre { display: block; font-size: 2.3rem; font-weight: 800; color: var(--vert); line-height: 1.1; margin-bottom: 6px; }
.source { font-size: .9rem; color: var(--texte-doux); font-style: italic; margin-top: 14px; }

/* Listes */
.liste-coches { list-style: none; padding: 0; margin: 0; }
.liste-coches li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.liste-coches li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--vert-clair) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%232E5E4E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Appel final */
.appel { text-align: center; }
.appel p { max-width: 52ch; margin: 0 auto 22px; font-size: 1.15rem; }
.section-verte .bouton { background: #fff; color: var(--vert) !important; }
.section-verte .bouton:hover { background: var(--creme); }

/* Présentation */
.presentation { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.photo-attente { aspect-ratio: 4 / 5; border-radius: 20px; background: var(--vert-clair); border: 2px dashed var(--vert); display: grid; place-items: center; text-align: center; padding: 20px; color: var(--vert); font-weight: 700; }

/* Formulaire */
.formulaire { display: grid; gap: 18px; }
.champ label { display: block; font-weight: 700; margin-bottom: 6px; }
.champ input, .champ textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--bord); border-radius: 10px; background: #fff; color: var(--texte);
}
.champ input:focus, .champ textarea:focus { outline: 3px solid rgba(47, 111, 175, .25); border-color: var(--bleu); }
.champ textarea { min-height: 160px; resize: vertical; }
.deux-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.consentement { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.consentement input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.obligatoire { color: #A33A2A; }
.piege { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.coordonnees { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 26px; }
.contact-grille { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }

/* Texte légal */
.texte-legal h2 { margin-top: 1.4em; }
.texte-legal h3 { margin-top: 1.2em; }

/* Pied de page */
.pied { background: var(--vert-fonce); color: #E8EFEA; padding: 44px 0 24px; margin-top: 0; }
.pied a { color: #fff; }
.pied .conteneur > .grille { grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.pied h2 { color: #fff; font-size: 1.05rem; margin-bottom: .7em; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 6px; }
.pied .nom { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.pied .bas { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 18px; font-size: .9rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Tablette */
@media (max-width: 980px) {
  .grille-4 { grid-template-columns: repeat(2, 1fr); }
  .grille-3, .chiffres, .etapes { grid-template-columns: 1fr 1fr; }
  .menu-bouton { display: inline-block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--creme); border-bottom: 1px solid var(--bord); padding: 12px 20px 20px; }
  .nav.ouverte { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav .bouton { margin: 8px 0 0; text-align: center; }
}

/* Téléphone */
@media (max-width: 700px) {
  body { font-size: 1rem; }
  .hero { padding: 32px 0 44px; }
  .hero .conteneur, .presentation, .contact-grille { grid-template-columns: 1fr; gap: 28px; }
  .hero-image { aspect-ratio: 4 / 3; }
  .grille-2, .grille-3, .grille-4, .chiffres, .etapes, .deux-champs { grid-template-columns: 1fr; }
  .pied .conteneur > .grille { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .marque img { height: 44px; }
  .photo-attente { max-width: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton { transition: none; }
}
