/* ============================================================
   Azur Habitat Solution — Feuille de styles partagée
   Toutes les pages utilisent ce fichier CSS.
   ============================================================ */

/* ── Variables ── */
:root {
  --cream:      #f0f7fb;
  --cream2:     #d6eaf5;
  --blue:       #0077b6;
  --blue-light: #0096d6;
  --blue-dark:  #00527a;
  --blue-deep:  #001a2e;
  --green:      #2d5a3d;
  --green-light:#4a7c5f;
  --green-pale: #e8f0eb;
  --gold:       #c8972a;
  --gold-light: #e8b84b;
  --text:       #0d2d40;
  --text-muted: #4a6a80;
  --white:      #ffffff;
  --border:     rgba(0,119,182,.14);
  --shadow:     0 4px 24px rgba(0,82,122,.10);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; border-radius: 8px; }

/* ── NAVBAR ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: all .35s;
  background: transparent;
  padding: 1.2rem 0;
}
#navbar.scrolled {
  background: var(--blue-dark);
  padding: .6rem 0;
  box-shadow: 0 4px 30px rgba(0,82,122,.4);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
}
.logo { display: flex; align-items: center; gap: 1rem; }
.logo-emblem {
  width: 50px; height: 50px; border-radius: 50%;
  border: 2px solid var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 900;
  font-size: 1.1rem; color: var(--blue-light);
  background: rgba(0,82,122,.4); backdrop-filter: blur(8px); flex-shrink: 0;
}
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.05rem; color: white; }
.logo-tagline { font-size: .68rem; color: rgba(255,255,255,.55); letter-spacing: .1em; text-transform: uppercase; }

nav { display: flex; align-items: center; gap: .1rem; }
.nav-link {
  padding: .5rem 1rem; color: rgba(255,255,255,.85);
  font-size: .88rem; font-weight: 500; border-radius: 4px;
  transition: all .2s; border-bottom: 2px solid transparent;
}
.nav-link:hover,
.nav-link.active { color: var(--gold-light); border-bottom-color: var(--gold-light); }
.nav-cta-btn {
  margin-left: 1rem; padding: .6rem 1.4rem;
  background: var(--gold); color: #003a5c; border-radius: 50px;
  font-weight: 700; font-size: .88rem; border: none; cursor: pointer;
  transition: all .2s;
}
.nav-cta-btn:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 26px; height: 2px; background: white; border-radius: 2px; transition: .3s; }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--blue-dark); z-index: 999;
  flex-direction: column; padding: 5rem 2rem 2rem; gap: .5rem; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-close { position: absolute; top: 1.5rem; right: 2rem; font-size: 2rem; color: white; cursor: pointer; background: none; border: none; }
.mobile-link {
  font-size: 1.3rem; font-family: 'Playfair Display', serif; font-weight: 700;
  padding: 1rem 0; color: white; border-bottom: 1px solid rgba(255,255,255,.1);
  display: block;
}
.mobile-link:hover { color: var(--gold-light); }

/* ── BUTTONS ── */
.btn-gold {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 1rem 2.2rem; background: var(--gold); color: #003a5c;
  border-radius: 50px; font-weight: 700; font-size: .95rem;
  border: none; cursor: pointer; transition: all .25s;
  box-shadow: 0 6px 24px rgba(200,151,42,.35);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 32px rgba(200,151,42,.45); }
.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 1rem 2.2rem; background: transparent; color: white;
  border-radius: 50px; font-weight: 600; font-size: .95rem;
  border: 1.5px solid rgba(255,255,255,.35); cursor: pointer; transition: all .25s;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,.08); }
.btn-green {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 1rem 2.2rem; background: var(--green); color: white;
  border-radius: 50px; font-weight: 700; font-size: .95rem;
  border: none; cursor: pointer; transition: all .25s;
  box-shadow: 0 6px 20px rgba(45,90,61,.3);
}
.btn-green:hover { background: var(--green-light); transform: translateY(-1px); }

/* ── PAGE HERO (service pages) ── */
.page-hero {
  min-height: 44vh; display: flex; align-items: center;
  padding: 9rem 2.5rem 4rem; position: relative; overflow: hidden;
}
.page-hero-blue    { background: linear-gradient(135deg, #002a45 0%, #0077b6 100%); }
.page-hero-slate   { background: linear-gradient(135deg, #1a1f2e 0%, #2d3748 100%); }
.page-hero-teal    { background: linear-gradient(135deg, #0a3a5c 0%, #1a6b9a 100%); }
.page-hero-green   { background: linear-gradient(135deg, #14532d 0%, #166534 100%); }
.page-hero-contact { background: linear-gradient(135deg, var(--blue-dark) 0%, #005082 100%); }

.page-hero-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; width: 100%; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; color: rgba(255,255,255,.45); font-size: .82rem; }
.breadcrumb a { color: var(--gold-light); }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); color: white; font-weight: 900; margin-bottom: 1rem; }
.page-hero .hero-desc { color: rgba(255,255,255,.65); max-width: 600px; font-size: 1.05rem; }

/* ── SECTION EYEBROW ── */
.eyebrow {
  font-size: .78rem; font-weight: 600; color: var(--gold);
  letter-spacing: .15em; text-transform: uppercase;
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem;
}
.eyebrow::before, .eyebrow::after { content: ''; height: 1px; background: var(--gold); opacity: .4; flex: 0 0 30px; }

/* ── PAGE CONTENT GRID ── */
.page-body { max-width: 1280px; margin: 0 auto; padding: 5rem 2.5rem; }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; align-items: start; }

/* Article */
.article h2 { font-size: 1.7rem; font-weight: 700; margin-bottom: 1rem; color: var(--text); }
.article h3 { font-size: 1.05rem; font-weight: 700; margin: 2rem 0 .7rem; color: var(--blue); }
.article p  { color: var(--text-muted); margin-bottom: 1.1rem; font-size: .93rem; line-height: 1.8; }

/* Img placeholder */
.img-placeholder {
  width: 100%; height: 260px; border-radius: 16px; margin-bottom: 2rem;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .75rem;
  color: rgba(255,255,255,.4); font-size: .8rem; font-style: italic;
}
.img-placeholder .ico { font-size: 3.5rem; opacity: .45; }

/* Feature checklist */
.feat-list { list-style: none; display: flex; flex-direction: column; gap: .65rem; margin: 1.25rem 0 2rem; }
.feat-list li { display: flex; gap: .75rem; align-items: flex-start; font-size: .91rem; color: var(--text-muted); }
.feat-list li::before {
  content: '✓'; width: 22px; height: 22px; min-width: 22px;
  background: var(--green); color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; margin-top: 2px;
}

/* Info box */
.info-box {
  background: var(--green-pale); border-radius: 14px;
  padding: 1.5rem 1.75rem; border: 1px solid rgba(45,90,61,.2);
  margin: 2rem 0;
}
.info-box h4 { color: var(--green); font-size: .95rem; margin-bottom: .5rem; }
.info-box p  { color: var(--text-muted); font-size: .88rem; margin: 0; }

/* Zone tags */
.zone-wrap { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.zone-tag {
  background: rgba(0,119,182,.08); color: var(--blue); border: 1px solid rgba(0,119,182,.2);
  padding: .3rem .8rem; border-radius: 50px; font-size: .78rem; font-weight: 600;
}

/* ── SIDEBAR ── */
.sidebar-card {
  background: var(--cream2); border-radius: 16px; padding: 2rem;
  border: 1px solid var(--border); position: sticky; top: 90px;
}
.sidebar-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; }
.sidebar-card p  { font-size: .83rem; color: var(--text-muted); margin-bottom: 1.1rem; }
.sidebar-btn {
  display: block; width: 100%; padding: .95rem; text-align: center;
  background: var(--green); color: white; border: none; border-radius: 50px;
  font-weight: 700; font-size: .9rem; cursor: pointer; transition: background .2s; margin-bottom: .75rem;
}
.sidebar-btn:hover { background: var(--green-light); }
.sidebar-phone {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--blue); color: white; padding: .85rem;
  border-radius: 50px; font-weight: 600; font-size: .9rem;
  cursor: pointer; transition: background .2s; margin-bottom: 1.25rem;
}
.sidebar-phone:hover { background: var(--blue-light); }
.sidebar-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.sidebar-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .85rem; color: var(--text-muted); }
.sidebar-list li::before { content: '›'; color: var(--gold); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }

/* ── CTA SECTION ── */
.cta-section {
  padding: 6rem 2.5rem; text-align: center;
  background: linear-gradient(135deg, #005082 0%, var(--blue-dark) 100%);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0; opacity: .4;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-section h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); color: white; margin-bottom: 1rem; }
.cta-section p  { color: rgba(255,255,255,.65); margin-bottom: 2.5rem; font-size: .95rem; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* ── FOOTER ── */
footer {
  background: var(--blue-dark); color: rgba(255,255,255,.6);
  padding: 5rem 2.5rem 2.5rem;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand p { font-size: .87rem; margin-top: 1rem; max-width: 270px; line-height: 1.8; }
.footer-logo-wrap { display: flex; align-items: center; gap: .85rem; margin-bottom: .5rem; }
.footer-logo-wrap .logo-emblem { background: rgba(0,150,214,.2); border-color: rgba(0,150,214,.5); }
.f-col h4 { font-family: 'Playfair Display', serif; font-size: .95rem; font-weight: 700; color: white; margin-bottom: 1.25rem; }
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.f-col ul li a { font-size: .85rem; transition: color .2s; }
.f-col ul li a:hover { color: var(--gold-light); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.08); margin-bottom: 1.75rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .8rem; }
.footer-bottom-links { display: flex; gap: 2rem; }
.footer-bottom-links a { transition: color .2s; }
.footer-bottom-links a:hover { color: var(--gold-light); }

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000;
  background: var(--blue-dark); border-top: 2px solid var(--blue);
  padding: 1.25rem 2.5rem; display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem;
  box-shadow: 0 -4px 30px rgba(0,0,0,.25);
}
#cookie-banner p { font-size: .85rem; color: rgba(255,255,255,.65); flex: 1; min-width: 200px; }
#cookie-banner a { color: var(--gold-light); font-weight: 500; }
.cookie-actions { display: flex; gap: .75rem; }
.cookie-btn { padding: .6rem 1.4rem; border-radius: 50px; font-weight: 600; font-size: .85rem; cursor: pointer; border: none; }
.cookie-accept { background: var(--gold); color: #003a5c; }
.cookie-accept:hover { background: var(--gold-light); }
.cookie-refuse { background: rgba(255,255,255,.08); color: rgba(255,255,255,.65); }
.cookie-refuse:hover { background: rgba(255,255,255,.14); }

/* ── FORM STYLES (contact.html) ── */
.form-section { max-width: 1280px; margin: 0 auto; padding: 5rem 2.5rem; display: grid; grid-template-columns: 3fr 2fr; gap: 5rem; }
.form-wrap h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--text); letter-spacing: .03em; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .85rem 1.1rem; border: 1.5px solid var(--cream2); border-radius: 10px;
  font-family: 'Outfit', sans-serif; font-size: .9rem; color: var(--text);
  background: white; transition: border .2s, box-shadow .2s; outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,119,182,.1); }
.form-group textarea { resize: vertical; min-height: 140px; }
/* Honeypot — visuellement caché */
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-submit {
  width: 100%; padding: 1.1rem; background: var(--green); color: white;
  border: none; border-radius: 50px; font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: all .2s; box-shadow: 0 6px 20px rgba(45,90,61,.3);
  margin-top: .5rem;
}
.form-submit:hover { background: var(--green-light); transform: translateY(-1px); }
.form-note { font-size: .77rem; color: var(--text-muted); margin-top: .75rem; text-align: center; }
.form-rgpd { display: flex; align-items: flex-start; gap: .65rem; margin-top: .5rem; }
.form-rgpd input { width: auto; margin-top: 3px; flex-shrink: 0; }
.form-rgpd label { font-size: .8rem; color: var(--text-muted); font-weight: 400; }
.form-rgpd a { color: var(--blue); }

/* Alert messages */
.alert {
  display: none; padding: 1.25rem 1.5rem; border-radius: 12px;
  margin-bottom: 1.5rem; font-size: .92rem; font-weight: 500;
}
.alert.show { display: block; }
.alert-success { background: #f0fdf4; border: 1.5px solid #86efac; color: #15803d; }
.alert-error   { background: #fef2f2; border: 1.5px solid #fca5a5; color: #dc2626; }

/* Contact sidebar tiles */
.contact-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.info-tile { background: white; border: 1px solid var(--cream2); border-radius: 14px; padding: 1.5rem; }
.info-tile h3 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.info-tile p  { font-size: .87rem; color: var(--text-muted); }
.info-tile a  { color: var(--blue); font-weight: 500; }
.info-tile.accent { background: var(--blue); border-color: var(--blue); }
.info-tile.accent h3, .info-tile.accent p { color: rgba(255,255,255,.9); }
.info-tile.accent p { color: rgba(255,255,255,.7); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .content-grid  { grid-template-columns: 1fr; }
  .form-section  { grid-template-columns: 1fr; }
  .footer-top    { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .sidebar-card  { position: static; }
}
@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
  .page-body { padding: 3rem 1.5rem; }
  .page-hero { padding: 8rem 1.5rem 3rem; }
}
@media (max-width: 480px) {
  .nav-inner { padding: 0 1.25rem; }
  .cta-section { padding: 4rem 1.5rem; }
  footer { padding: 3rem 1.5rem 2rem; }
}
