/* ==========================================================================
   BRINON Digital — palette « Bleu Loire »
   Fond blanc cassé chaud, texte marine, accent bleu logo, touche sable.
   Mobile-first : les media queries élargissent vers desktop.
   ========================================================================== */

:root {
  --bg: #F7F7F4;
  --bg-alt: #FFFFFF;
  --sand: #E8DCC8;
  --sand-light: #F3EDE1;
  --ink: #1B2A3D;
  --ink-soft: #4A5A6E;
  --accent: #2E7CC7;
  --accent-dark: #1F5E9C;
  --border: #E2E0DA;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(27, 42, 61, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.container.narrow { max-width: 820px; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent-dark); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-outline {
  background: transparent;
  color: var(--accent-dark);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-small { padding: 11px 24px; font-size: 1rem; margin: 0 8px; background: var(--accent); color: #fff !important; }
.btn-small:hover { background: var(--accent-dark); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Blanc pur : le logo PNG a un fond blanc, il doit se fondre dans le header */
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
}
.wordmark { text-decoration: none; }
.wordmark-text, .footer-brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.wordmark-text em, .footer-brand em {
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
  margin-left: 4px;
}
.logo-img { height: 42px; width: auto; display: block; }

.main-nav {
  display: none;
  position: absolute;
  top: 62px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 10px 20px 20px;
  gap: 4px;
}
.main-nav.open { display: flex; }
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 0;
}
.main-nav a:hover { color: var(--accent-dark); }
/* Spécificité renforcée : sans ça, la règle .main-nav a écrase le padding du bouton */
.main-nav a.btn-small { padding: 11px 24px; }
.main-nav a.btn-small:hover { color: #fff; }
.main-nav .btn-small { margin-top: 8px; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(rgba(27, 42, 61, 0.05) 1px, transparent 1.5px) 0 0 / 26px 26px,
    radial-gradient(ellipse 90% 65% at 50% -10%, rgba(46, 124, 199, 0.13), transparent 70%),
    linear-gradient(180deg, #EDF3FA 0%, var(--bg) 85%);
}
/* Halos décoratifs flous derrière le contenu du hero */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.hero::before {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(46, 124, 199, 0.28), transparent 65%);
}
.hero::after {
  width: 380px;
  height: 380px;
  bottom: -180px;
  left: -140px;
  background: radial-gradient(circle, rgba(232, 220, 200, 0.85), transparent 65%);
}
.hero .container { position: relative; z-index: 1; }
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.hero h1 { margin-bottom: 18px; }
.hero-sub {
  max-width: 620px;
  margin: 0 auto 28px;
  color: var(--ink-soft);
  font-size: 1.06rem;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.hero-note {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; position: relative; }
.section-alt {
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(46, 124, 199, 0.05), transparent 60%),
    radial-gradient(ellipse 60% 45% at 0% 100%, rgba(232, 220, 200, 0.35), transparent 60%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
/* Filigrane discret sur les sections claires (id ancrées) */
#probleme, #zone {
  background:
    radial-gradient(ellipse 55% 45% at 85% 15%, rgba(232, 220, 200, 0.30), transparent 65%),
    var(--bg);
}
.section-intro {
  color: var(--ink-soft);
  max-width: 680px;
  margin-bottom: 32px;
  font-size: 1.02rem;
}

/* ---------- Cartes problème ---------- */
.cards-3 { display: grid; gap: 16px; }
.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(27, 42, 61, 0.12);
}
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: 20px; }
.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(27, 42, 61, 0.12);
}
.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 6px 24px rgba(46, 124, 199, 0.14);
  background: #fff;
}
.price-badge {
  position: absolute;
  top: -13px;
  left: 22px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 999px;
  margin: 0;
}
.price-name { font-size: 1.25rem; margin-bottom: 2px; }
.price-for { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 14px; min-height: 2.4em; }
.price-amount { font-size: 2.1rem; font-weight: 800; margin-bottom: 2px; }
.price-amount span { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.price-setup { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 16px; }
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  font-size: 0.93rem;
  flex-grow: 1;
}
.price-features li {
  padding: 8px 0 8px 26px;
  border-top: 1px solid var(--border);
  position: relative;
}
.price-features li:first-child { border-top: none; }
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-weight: 700;
}
.price-features li.plus::before { content: "+"; }

/* ---------- Options à la carte ---------- */
.options-details {
  margin-top: 28px;
  background: var(--sand-light);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 4px 18px;
}
.options-details summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
}
.options-grid { display: grid; gap: 10px; padding: 6px 0 16px; }
.option {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.option strong { color: var(--accent-dark); margin-right: 6px; }

.pricing-footnote {
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Étapes ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}
.step {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 22px 66px;
  position: relative;
  box-shadow: var(--shadow);
}
.step-num {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- À propos ---------- */
.about { display: grid; gap: 24px; }
.about-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--sand-light);
  border: 2px dashed var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin: 0 auto;
  flex-shrink: 0;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.about-text p { color: var(--ink); }

/* ---------- Zone ---------- */
.zone-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.zone-list li {
  background: var(--sand-light);
  border: 1px solid var(--sand);
  border-radius: 999px;
  padding: 9px 20px;
  font-weight: 600;
  font-size: 0.95rem;
}
.zone-note { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Contact ---------- */
.section-contact {
  background:
    radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1.5px) 0 0 / 26px 26px,
    radial-gradient(ellipse 80% 70% at 85% 0%, rgba(46, 124, 199, 0.30), transparent 65%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(46, 124, 199, 0.14), transparent 60%),
    linear-gradient(160deg, #1F3247 0%, var(--ink) 60%, #14202F 100%);
  color: #fff;
}
.section-contact h2 { color: #fff; }
.section-contact .section-intro { color: #C4CEDA; }
.contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}
.contact-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
}
.contact-chip:hover { background: rgba(255, 255, 255, 0.16); }

.contact-form { max-width: 640px; }
.form-row { display: grid; gap: 14px; }
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 14px;
  color: #DDE5EE;
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.contact-form ::placeholder { color: #8FA0B5; }
.form-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: #9FB0C3;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #14202F;
  color: #9FB0C3;
  text-align: center;
  padding: 36px 0;
  font-size: 0.88rem;
}
.footer-brand { color: #fff; margin-bottom: 12px; }
.site-footer a { color: #C4CEDA; }

/* ==========================================================================
   ≥ 700px — tablette
   ========================================================================== */
@media (min-width: 700px) {
  h1 { font-size: 2.35rem; }
  h2 { font-size: 1.8rem; }
  .hero { padding: 88px 0 96px; }
  .hero-actions { flex-direction: row; justify-content: center; }
  .section { padding: 76px 0; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .options-grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: auto 1fr; align-items: start; }
  .about-photo { margin: 0; }
}

/* ==========================================================================
   ≥ 960px — desktop
   ========================================================================== */
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 26px;
    background: none;
    border: none;
    padding: 0;
  }
  .main-nav a { padding: 0; font-size: 1.05rem; }
  .main-nav .btn-small { margin: 0 8px; }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .options-grid { grid-template-columns: repeat(3, 1fr); }
}
