/* ============================================================
   Allô Toiture 06 — Feuille de style principale
   Design : Artisan Méditerranéen / Propre & Léger
   ============================================================ */

/* --- Variables & Reset --- */
:root {
  --orange:    #c75204;
  --orange-dk: #a04203;
  --slate:     #2d3940;
  --slate-lt:  #3e505a;
  --cream:     #faf7f4;
  --cream-dk:  #f0ebe4;
  --text:      #2a2a2a;
  --text-lt:   #5a5a5a;
  --border:    #ddd5cb;
  --white:     #ffffff;
  --radius:    6px;
  --shadow:    0 2px 16px rgba(0,0,0,.09);
  --font-head: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --max:       1140px;
  --gap:       2rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dk); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  color: var(--slate);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; color: var(--text-lt); }
p:last-child { margin-bottom: 0; }
ul { list-style: none; }

/* --- Header / Navigation --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--slate);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-size: 1.45rem;
  color: var(--white);
  white-space: nowrap;
}
.site-logo span { color: #fd7c26; }

.site-logo img {
  height: 40px;
  width: auto;
}
.site-logo, .nav-toggle {
  flex-shrink: 0;
}
.site-nav { display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; }
.site-nav a {
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .03em;
  padding: .45rem .8rem;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.site-nav a:hover,
.site-nav a.active { background: rgba(255,255,255,.12); color: var(--white); }

.header-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  border-radius: var(--radius) !important;
  padding: .5rem 1.1rem !important;
  font-weight: 600 !important;
  white-space: nowrap;
}
.header-cta:hover { background: var(--orange-dk) !important; }

.nav-phone {
  color: var(--white) !important;
  font-size: .9rem !important;
  font-weight: 600 !important;
  display: flex; align-items: center; gap: .35rem;
  white-space: nowrap;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: .4rem;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  transition: transform .25s, opacity .25s;
}
.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 {
  background: linear-gradient(135deg, var(--slate) 0%, #1e2d38 60%, #2d3940 100%);
  color: var(--white);
  padding: 5rem 1.5rem 4.5rem;
  position: relative;
  overflow: hidden;
}
/* .hero::before { */
  /* content: ''; */
  /* position: absolute; inset: 0; */
  /* 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='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); */
  /* pointer-events: none; */
/* } */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('../img/fond-accueil.webp');
  background-size: cover;
  background-position: center top;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute; inset: 0;
  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='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  gap: 3rem; align-items: center;
}
.hero-eyebrow {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange); font-weight: 600; margin-bottom: .75rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero p  { color: rgba(255,255,255); font-size: 1.1rem; max-width: 54ch; margin-bottom: 2rem; }

.hero-badges {
  display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem;
}
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.9);
  font-size: .8rem; font-weight: 500; letter-spacing: .04em;
  padding: .3rem .8rem; border-radius: 100px;
}
.badge svg { width: 14px; height: 14px; flex-shrink: 0; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  padding: .8rem 1.8rem; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dk); border-color: var(--orange-dk); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-slate { background: var(--slate); color: var(--white); border-color: var(--slate); }
.btn-slate:hover { background: var(--slate-lt); border-color: var(--slate-lt); color: var(--white); }

/* Phone CTA in hero */
.hero-phone {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px; padding: 1.75rem 2rem;
  text-align: center; min-width: 200px;
}
.hero-phone p { color: rgba(255,255,255); font-size: .8rem; margin-bottom: .25rem; }
.hero-phone a {
  font-family: var(--font-head);
  font-size: 1.9rem; color: var(--white); letter-spacing: .02em;
  display: block; margin-bottom: .5rem;
}
.hero-phone a:hover { color: var(--orange); }
.hero-phone small { color: rgba(255,255,255); font-size: .75rem; }

/* --- Sections --- */
section { padding: 4.5rem 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--slate); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.75); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { max-width: 60ch; margin: 1rem auto 0; font-size: 1.05rem; }
.section-eyebrow {
  display: block; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 600;
  color: #bf4f04; margin-bottom: .5rem;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 2rem;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  display: flex; flex-direction: column; gap: .75rem;
}
.service-card:hover {
  box-shadow: var(--shadow); transform: translateY(-3px);
  border-color: var(--orange);
}
.service-icon {
  width: 52px; height: 52px;
  background: var(--cream-dk); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 28px; height: 28px; color: var(--orange); }
.service-card h3 { color: var(--slate); }
.service-card p { font-size: .9rem; flex: 1; }
.service-card a { font-weight: 600; font-size: .9rem; color: var(--orange); }
.service-card a:hover { color: var(--orange-dk); }

/* --- Why Us --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.why-item { text-align: center; }
.why-number {
  font-family: var(--font-head);
  font-size: 3rem; color: var(--orange); line-height: 1;
  margin-bottom: .5rem;
}
.why-item h3 { margin-bottom: .5rem; }

/* --- Chantiers / Blog grid --- */
.chantiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}
.chantier-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.chantier-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.chantier-thumb {
  background: var(--cream-dk); height: 180px;
  display: flex; align-items: center; justify-content: center;
}
.chantier-thumb svg { width: 48px; height: 48px; color: var(--border); }
.chantier-body { padding: 1.5rem; }
.chantier-tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange); margin-bottom: .5rem; display: block;
}
.chantier-body h3 { color: var(--slate); margin-bottom: .5rem; font-size: 1.1rem; }
.chantier-body p { font-size: .88rem; }
.chantier-body a { font-size: .88rem; font-weight: 600; }

/* --- Zone d'intervention --- */
.zone-text { max-width: 72ch; margin: 0 auto; text-align: center; }
.zone-list {
  display: flex; flex-wrap: wrap; gap: .4rem;
  justify-content: center; margin-top: 1.5rem;
}
.zone-list li span {
  background: var(--cream-dk); border: 1px solid var(--border);
  border-radius: 100px; padding: .25rem .75rem;
  font-size: .82rem; color: var(--text-lt); display: inline-block;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--orange);
  padding: 3.5rem 1.5rem; text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: .75rem; }
.cta-banner p { color: #FFF; margin-bottom: 2rem; font-size: 1.05rem; }
.cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--cream-dk); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.contact-item-icon svg { width: 22px; height: 22px; color: var(--orange); }
.contact-item h4 { margin-bottom: .15rem; }
.contact-item p, .contact-item a { font-size: .95rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .4rem; color: var(--slate); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--white); font-family: var(--font-body); font-size: .95rem;
  color: var(--text); transition: border-color .2s;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(199,82,4,.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .8rem; color: var(--text-lt); margin-top: .35rem; }

/* --- Page Hero (sous-pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--slate) 0%, #1e2d38 100%);
  color: var(--white); padding: 3.5rem 1.5rem;
}
.page-hero-inner { max-width: var(--max); margin: 0 auto; }
.breadcrumb {
  font-size: .82rem; color: rgba(255,255,255,.55); margin-bottom: 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.breadcrumb a { color: rgba(255,255,255,.55); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.3); }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,.75); max-width: 56ch; font-size: 1.05rem; }

/* --- Content (sous-pages) --- */
.content-section { padding: 4rem 0; }
.content-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }
.content-block h2 { margin-bottom: 1rem; }
.content-block p { margin-bottom: 1rem; }
.content-block ul { margin: 1rem 0; display: flex; flex-direction: column; gap: .4rem; }
.content-block ul li {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .95rem; color: var(--text-lt);
}
.content-block ul li::before {
  content: '';
  width: 7px; height: 7px; background: var(--orange);
  border-radius: 50%; flex-shrink: 0; margin-top: .55rem;
}
.content-image {
  background: var(--cream-dk); border-radius: 12px;
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.content-image svg { width: 64px; height: 64px; color: var(--border); }

/* --- Footer --- */
.site-footer {
  background: #1a252d; color: rgba(255,255,255,.65);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  max-width: var(--max); margin: 0 auto; padding: 0 1.5rem;
}
.footer-brand { margin-bottom: 1rem; }
.footer-logo {
  font-family: var(--font-head); font-size: 1.4rem; color: var(--white); margin-bottom: .75rem;
}
.footer-logo span { color: #f96806; }
.footer-brand p { font-size: .88rem; line-height: 1.6; }
.footer-col h3 { color: var(--white); margin-bottom: 1rem; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul li a { color: rgba(255,255,255,.6); font-size: .88rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-contact p { font-size: .88rem; line-height: 1.8; }
.footer-contact a { color: rgba(255,255,255,.75); }
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 1.5rem;
  max-width: var(--max); margin: 3rem auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; color: rgba(255,255,255,.65);
  flex-wrap: wrap; gap: .5rem;
}
.footer-bottom a { color: rgba(255,255,255,.65); }
.footer-bottom a:hover { color: rgba(255,255,255,.85); }
.siret { font-size: .78rem; color: rgba(255,255,255,.7); }
footer p {  color: rgba(255,255,255,.7);} 
/* --- Schema / Structured data strip --- */
.garanties-strip {
  background: var(--cream-dk);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
}
.garanties-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap;
}
.garantie-item {
  display: flex; align-items: center; gap: .6rem;
  font-size: .88rem; font-weight: 500; color: var(--slate);
}
.garantie-item svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .content-grid.reverse { direction: ltr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-phone { display: none; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--slate); flex-direction: column; gap: 0;
    padding: .5rem 0; display: none; border-top: 1px solid rgba(255,255,255,.1);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .75rem 1.5rem; border-radius: 0; }
  .header-inner { position: relative; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center;}
  section { padding: 3rem 0; }
}

@media (max-width: 500px) {
  .hero { padding: 3rem 1.25rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .cta-group { flex-direction: column; }
  .cta-group .btn { width: 100%; justify-content: center; }
}
@media (max-width: 380px) {
  .nav-phone {
    font-size: 0 !important; /* Cache le texte */
    gap: 0;
  }
  .nav-phone svg {
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 400px) {
  .site-logo {font-size: 1.1rem;}
  .site-logo img {height: 32px;}
}