/*
Theme Name: Citron Vision
Theme URI:
Author:
Description: Thème statique du centre d’ophtalmologie Citron Vision. Réservé à index02.html.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: citron-vision
*/

:root {
  --citron: #d6ef3a;
  --citron-fonce: #b6d012;
  --feuille: #2c6b28;
  --encre: #1b2a16;
  --creme: #f6fbe6;
  --ligne: #d5e7a4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
  color: var(--encre);
  background: var(--creme);
}

a { color: var(--feuille); }

header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem 6vw;
  background: var(--feuille);
  color: #fff;
}

header a { color: #fff; text-decoration: none; }

.logo { font-weight: 700; }

nav { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .92rem; }

.hero {
  padding: 4.2rem 6vw 3rem;
  background: linear-gradient(155deg, var(--citron), #eef8c2 58%, var(--creme));
}

h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; margin: .35rem 0 .7rem; }

.badge {
  background: var(--feuille);
  color: var(--citron);
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .8rem;
}

.btn {
  display: inline-block;
  background: var(--feuille);
  color: #fff;
  text-decoration: none;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.btn.alt {
  background: transparent;
  color: var(--feuille);
  border: 2px solid var(--feuille);
  margin-left: .4rem;
}

section { padding: 2.5rem 6vw; }

h2 { margin: 0 0 .8rem; color: var(--feuille); }

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.carte {
  background: #fff;
  border: 1px solid var(--ligne);
  border-top: 4px solid var(--citron);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}

.infos { display: flex; gap: 1.5rem; flex-wrap: wrap; }

form { display: grid; gap: .7rem; max-width: 640px; }

label { font-weight: 600; font-size: .92rem; }

input, select, textarea {
  width: 100%;
  margin-top: .25rem;
  padding: .65rem .7rem;
  border: 1px solid var(--ligne);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.row { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }

.row input { width: auto; margin-top: .25rem; }

.legal { background: #fff; border-top: 1px solid var(--ligne); }

.ok {
  display: none;
  background: #e8f7c4;
  border: 1px solid var(--citron-fonce);
  padding: .8rem 1rem;
  border-radius: 10px;
}

.bandeau {
  position: fixed;
  z-index: 30;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  background: #fff;
  color: var(--encre);
  border: 1px solid var(--ligne);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(27, 42, 22, .2);
}

.bandeau p { margin: 0; flex: 1 1 16rem; }

.bandeau-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.bandeau .btn.alt { margin-left: 0; background: #fff; }

body:has(.bandeau:not([hidden])) { padding-bottom: 8rem; }

footer {
  padding: 1.2rem 6vw 2rem;
  background: var(--feuille);
  color: #e8f6c4;
  font-size: .9rem;
}

footer a { color: var(--citron); }
