/* Base */
:root{
  /* Pastel light theme */
  --bg:#ffffff;
  --panel:#ffffff;
  --text:#0f172a; /* slate-900 */
  --muted:#475569; /* slate-600 */
  --primary:#ec4899; /* pink-500 */
  --primary-700:#db2777; /* pink-600 */
  --secondary:#8b5cf6; /* violet-500 */
  --accent:#f59e0b; /* amber-500 */
  --card:#ffffff;
  --border:#e5e7eb;
  --shadow:0 10px 25px rgba(2,6,23,.06);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; background:linear-gradient(180deg,#ffffff 0%,#fdf2f8 100%); color:var(--text);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; line-height:1.6;
}
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
.container{width:min(1100px,92%); margin-inline:auto}
.section {
  padding: 48px 16px;
}

@media (min-width: 768px) {
  .section {
    padding: 72px 16px;
  }
}
.small{font-size:.95rem}
.muted{color:var(--muted)}
.link{color:var(--secondary)}

/* Accessibility */
.skip-link{position:absolute; left:-9999px}
.skip-link:focus{left:16px; top:16px; background:#fff; color:#000; padding:8px 12px; border-radius:8px}
.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0}

/* Header */
/* Header Glassmorphism */
.site-header {
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.header-inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0}
.logo{display:flex; align-items:center; gap:10px; font-weight:700}
.site-header .logo img { width: 48px; height: 48px; }
.site-header .logo span { font-size: 1.25rem; }

@media (min-width: 768px){
  .site-header .logo img { width: 64px; height: 64px; }
  .site-header .logo span { font-size: 2rem; }
}
.nav-menu{display:flex; gap:18px; align-items:center; list-style:none; margin:0; padding:0}
.nav-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.nav-menu a.active{background:#f1f5f9}
.nav-toggle{display:none; background:none; border:none; padding:8px}
.burger{width:26px; height:2px; background:var(--text); position:relative}
.burger::before,.burger::after{content:""; position:absolute; left:0; width:26px; height:2px; background:var(--text)}
.burger::before{top:-7px}.burger::after{top:7px}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  text-align: center; /* Center button text explicitly */
}

.btn:hover {
  transform: scale(1.03);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px -4px var(--primary-color-light);
}

.btn-primary:hover {
  background: var(--primary-color-dark);
  border-color: var(--primary-color-dark);
}

.btn-secondary{background:#f8fafc; color:var(--text); border-color:#e2e8f0}
.btn-ghost{background:transparent; color:var(--text); border-color:#e2e8f0}

/* Ensure card buttons are centered nicely */
.card a.btn { display: inline-flex; align-items: center; justify-content: center; margin: 0 auto; }

/* Hero */
.hero{position:relative}
.hero-grid{display:grid; grid-template-columns:1fr 1fr; gap:36px; align-items:center}
.hero h1{font-family:Montserrat,Inter,sans-serif; font-size:clamp(2rem,4vw,3rem); line-height:1.1; margin:0 0 12px}
.hero p{color:var(--muted); font-size:1.05rem}
.hero .cta-row{display:flex; gap:12px; margin:18px 0 12px}

.location-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.location-info svg {
  flex-shrink: 0;
  color: var(--primary-color-light);
}
.features{display:flex; gap:14px; padding:0; margin:16px 0 0; list-style:none; color:#475569; flex-wrap:wrap}
.hero-media img{border-radius:18px; box-shadow:var(--shadow)}

/* Hero image sizing and alignment */
.hero-media { display: flex; justify-content: flex-end; }
@media (min-width: 768px) {
  .hero-media img { max-width: 65%; height: auto; transform: translateX(132px); margin-right: 0; }
}
@media (min-width: 1200px) {
  .hero-media img { transform: translateX(160px); }
}
@media (min-width: 1440px) {
  .hero-media img { transform: translateX(192px); }
}
.hero-bg{position:absolute; inset:0; background:radial-gradient(600px 300px at 20% 10%, rgba(236,72,153,.15), transparent), radial-gradient(600px 300px at 80% 20%, rgba(139,92,246,.15), transparent)}

/* Cards */
.cards{display:grid; gap:18px}
.cards.three{grid-template-columns:repeat(3,1fr)}

/* Reduce top spacing before Offres section */
#offres.section { padding-top: 8px; }
#offres h2 { margin-top: 0; margin-bottom: 14px; text-align: center; }

/* Ensure Offres section sits on a uniform white background */
#offres { background-color: #fff; }

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 1.5rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.07);
}

.card h3 {
  margin-top: 0;
  text-align: center; /* ensure centered heading */
}

.card ul {
  flex-grow: 1;
  text-align: left;
  display: inline-block;
  margin-bottom: 1.5rem;
  list-style-position: outside;
  padding-left: 1.2em;
}

.card .price{color:#334155}
.card .price span{font-size:1.6rem; font-weight:800; color:#0f172a}
.card .badge{position:absolute; right:14px; top:14px; background:var(--accent); color:#111; font-weight:700; border-radius:999px; padding:6px 10px}
.card.recommended{position:relative; border-color:#fed7aa; box-shadow:0 10px 25px rgba(245,158,11,.15)}
.card-cover{border-radius:12px; margin:-2px 0 12px; aspect-ratio:16/9; object-fit:cover}

/* Split section */
.split-grid{display:grid; grid-template-columns:1fr 1fr; gap:24px; align-items:center}
.checklist{list-style:none; margin:0; padding:0}
.checklist li{padding-left:28px; position:relative; margin:8px 0}
.checklist li::before{content:"✓"; position:absolute; left:0; color:var(--primary)}

/* About: image sizing */
.split-media img { display:block; margin: 0 auto; width: 100%; height: auto; }
@media (min-width: 768px){
  .split-media img { max-width: 70%; }
}

/* About section spacing tweaks */
.about-section { padding-top: 12px; background:#fff; }
.about-section .split-grid { align-items: start; }
.about-section .split-copy h2 { margin-top: 0; }

/* Trust/CTA */

.highlight { background-color: #fdf2f8; }

.cta {
  background: linear-gradient(135deg, rgba(236, 72, 153, .08), rgba(139, 92, 246, .08));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 2rem;
}

.cta p {
  margin: 0;
  max-width: 60ch;
  white-space: nowrap;
}

.cta ul {
  margin-bottom: 1.5rem;
  flex-grow: 1;
  padding-left: 0;
  list-style-position: inside;
}

/* Contact page */
.page-hero.small p { color: var(--muted); }

/* Raise page titles/hero blocks by 50px on desktop */
@media (min-width: 768px){
  .page-hero { margin-top: -50px; }
}

/* Reduce bottom spacing of the hero on contact page */
.page-hero.small { padding-bottom: 10px; }
@media (min-width: 768px){
  .page-hero.small { padding-bottom: 14px; }
}

.contact-logo {
  width: clamp(140px, 22vw, 220px);
  height: auto;
  margin: 12px auto 0;
  display: block;
}

.zone-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 980px;
}

.map-embed { display: flex; justify-content: center; margin-top: 8px; }
.map-embed img {
  width: 100%;
  max-width: 450px; /* 50% de la taille précédente */
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: block;
}

.map-actions { margin-top: 12px; text-align: center; }

/* Reduce spacing for the map section to tuck closer under the hero */
.map-section { padding-top: 2px; padding-bottom: 6px; }
@media (min-width: 768px){
  .map-section { padding-top: 6px; padding-bottom: 10px; }
}

/* Tighten spacing between the descriptive line and the map */
.zone-card p { margin: 0 0 6px; }

/* Compact the contact block spacing */
.section.contact-compact { padding-top: 6px; padding-bottom: 12px; }
@media (min-width: 768px){
  .section.contact-compact { padding-top: 8px; padding-bottom: 14px; }
}

/* Slightly reduce space under the map button */
.map-actions { margin-top: 8px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: start;
}

.contact-cover {
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.contact-icons { list-style: none; padding: 0; margin: 0 0 12px; }
.contact-icons li { margin: 10px 0; }
.contact-icons a { display: flex; align-items: center; gap: 10px; color: var(--text); }
.contact-icons svg { color: var(--primary); }

.form.card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.form .field { margin-bottom: 14px; }
.form .field.inline { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; }
.form label { font-weight: 600; }
.form input, .form textarea, .form select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; }

@media (max-width: 920px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form .field.inline { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer{border-top:1px solid var(--border); background:#f8fafc; color:#0f172a}
.footer-grid > div:last-child {
  text-align: center;
  justify-self: center;
}
.footer-grid{display:grid; grid-template-columns:1.2fr .8fr .8fr; gap:18px; padding:24px 0}
.footer-grid ul{list-style:none; padding:0; margin:0}
.footer-grid a {
  color: #334155;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: var(--primary-color);
}

/* Page layout */
.page-hero{background:radial-gradient(600px 300px at 30% 20%, rgba(236,72,153,.1), transparent)}
.contact-grid {
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-icons {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.contact-icons li {
  margin-bottom: 1rem;
}

.contact-icons a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.2s;
}

.contact-icons a:hover {
  color: var(--primary-color);
}

.contact-icons svg {
  flex-shrink: 0;
  color: var(--primary-color-light);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: var(--text-color-light);
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--primary-color);
}

/* Footer-specific layout override removed to use default horizontal layout from .social-links and footer grid alignment */
/* (reverted) */


/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utils */
.text-center { text-align: center; }

/* Noscript */
.noscript{background:#fff; color:#111; padding:12px; text-align:center}

/* Responsive */
@media (max-width: 920px){
  .hero-grid{grid-template-columns:1fr; gap:18px}
  .split-grid{grid-template-columns:1fr}
  .cards.three{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  /* Mobile nav (hamburger) */
  .nav-toggle{display:inline-flex}
  .nav-menu{
    position:absolute; right:4%; top:64px;
    background:var(--panel);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    border-radius:12px;
    padding:10px;
    display:none;
    flex-direction:column;
    min-width:220px;
    z-index: 20;
  }
  .nav-menu.open{display:flex}
  /* Mobile spacing */
  .section { padding: 32px 16px; }
  /* Hero image and layout */
  .hero-media { justify-content: center; }
  .hero-media img { max-width: 100%; height: auto; transform: none; }
  /* Neutraliser le décalage négatif des titres sur mobile */
  .page-hero { margin-top: 0; }
  /* Contact page grid */
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .zone-card { padding: 12px 14px; border-radius: 12px; }
  .map-embed { margin-top: 6px; }
  .map-embed img { max-width: 100%; }
  .map-actions { margin-top: 10px; }
  /* About page image */
  .split-media img { max-width: 100%; }
  .about-section { padding-top: 8px; }
  /* CTA */
  .cta { flex-direction: column; text-align: center; gap: 12px; }
  .cta p { white-space: normal; }
  .cta a.btn { width: 100%; justify-content: center; }
}
