/* ============================================================
   Ramage Charpente Couverture — feuille de style du site
   Palette et typographie reprises de la maquette validee.
   ============================================================ */

:root {
  --creme: #FBF6EF;
  --sable: #F2E7D8;
  --sable-fonce: #E6D7C2;
  --beige: #E8C9A0;
  --brun: #2E2622;
  --accent: #A24B2A;
  --texte: #2E2622;
  --texte-2: #3F352E;
  --texte-3: #4A3F38;
  --texte-4: #5C5044;
  --texte-5: #7A6A5F;
  --sur-brun: #DFD3C6;
  --sur-brun-2: #A99A8C;
  --sur-brun-3: #CFC2B4;
  --bord: rgba(46, 38, 34, .1);
  --bord-fort: rgba(46, 38, 34, .18);
  --titre: "Baloo 2", "Nunito Sans", system-ui, sans-serif;
  --corps: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-s: 12px; --r-m: 18px; --r-l: 22px; --r-xl: 24px;
  --pad-x: clamp(16px, 4vw, 36px);
  --sec-y: clamp(48px, 7vw, 100px);
  --barre-mobile: 0px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 16px;
  line-height: 1.6;
  padding-bottom: var(--barre-mobile);
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--titre); font-weight: 700; letter-spacing: -.01em; line-height: 1.14; }
p, ul, ol { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--brun); }
::selection { background: var(--beige); color: var(--brun); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.saut-contenu {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brun); color: var(--creme); padding: 12px 18px; border-radius: 0 0 12px 0;
}
.saut-contenu:focus { left: 0; color: var(--creme); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.wrap-etroit { max-width: 880px; }
.sec { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
.sec--court { padding-top: clamp(34px, 4.5vw, 64px); padding-bottom: clamp(34px, 4.5vw, 64px); }
.sec--sable { background: var(--sable); }
.sec--sable-fonce { background: var(--sable-fonce); }
.sec--brun { background: var(--brun); color: var(--creme); }
.sec--brun h1, .sec--brun h2, .sec--brun h3 { color: var(--creme); }
.sec--brun p, .sec--brun li { color: var(--sur-brun); }

.surtitre { font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.sec--brun .surtitre { color: var(--beige); }
.t1 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
.t2 { font-size: clamp(27px, 3.4vw, 44px); }
.t3 { font-size: clamp(22px, 2.6vw, 32px); }
.chapo { font-size: clamp(16.5px, 1.35vw, 19px); line-height: 1.72; color: var(--texte-3); text-wrap: pretty; }
.texte { font-size: 16.5px; line-height: 1.75; color: var(--texte-3); text-wrap: pretty; }
.petit { font-size: 14.5px; line-height: 1.7; color: var(--texte-4); }
.mesure { max-width: 66ch; }
.mesure-courte { max-width: 640px; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; } .mt-5 { margin-top: 44px; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 14px 26px; border: 0; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primaire { background: var(--accent); color: var(--creme); }
.btn--primaire:hover { background: var(--brun); color: var(--creme); }
.btn--doux { background: var(--sable); color: var(--brun); }
.btn--doux:hover { background: var(--beige); color: var(--brun); }
.btn--creme { background: var(--creme); color: var(--brun); }
.btn--creme:hover { background: var(--beige); color: var(--brun); }
.btn--beige { background: var(--beige); color: var(--brun); }
.btn--beige:hover { background: var(--creme); color: var(--brun); }
.btn--contour { background: rgba(251,246,239,.1); border: 1px solid rgba(251,246,239,.32); color: var(--creme); }
.btn--contour:hover { background: var(--beige); color: var(--brun); border-color: var(--beige); }
.btn--petit { min-height: 44px; padding: 11px 18px; font-size: 15px; }
.btn--large { width: 100%; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }

.etiquette {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sable); color: #6B4A2E; padding: 8px 15px;
  border-radius: 999px; font-size: 13.5px; font-weight: 600;
}
.jetons { display: flex; flex-wrap: wrap; gap: 9px; }
.jeton { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid rgba(46,38,34,.12); color: var(--texte-3); font-size: 14.5px; }
.jeton--sable { background: var(--sable); border-color: transparent; }
.jeton--plein { background: var(--brun); color: var(--creme); font-weight: 600; border-color: transparent; }
.jeton--beige { background: var(--beige); color: var(--brun); font-weight: 600; border-color: transparent; }
.jeton--sombre { background: rgba(251,246,239,.1); color: var(--sur-brun); border-color: transparent; }

/* ---------- en-tete ---------- */
.entete {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 246, 239, .97);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--bord);
}
.entete__in { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 24px); padding-top: 12px; padding-bottom: 12px; position: relative; flex-wrap: nowrap; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--texte); flex: none; }
.logo:hover { color: var(--texte); }
.logo__rond {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--accent); color: var(--creme);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--titre); font-weight: 700; font-size: 19px;
}
.logo__nom { font-family: var(--titre); font-weight: 700; font-size: 20px; line-height: 1; display: block; }
.logo__baseline { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-5); line-height: 1; display: block; margin-top: 3px; }

.nav { display: flex; gap: 2px; flex-wrap: nowrap; align-items: center; margin-left: auto; }
.nav a {
  color: var(--texte-3); font-size: 15px; font-weight: 600;
  padding: 10px 12px; border-radius: 999px; white-space: nowrap;
}
.nav a:hover { background: var(--sable); color: var(--brun); }
.nav a[aria-current="page"] { background: var(--accent); color: var(--creme); }
.entete__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.entete__tel { font-size: 14px; color: var(--texte-4); white-space: nowrap; }
.entete__tel:hover { color: var(--accent); }

.burger {
  display: none; margin-left: auto; background: none; border: 1px solid var(--bord);
  border-radius: 12px; width: 48px; height: 48px; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 0;
}
.burger span { display: block; width: 21px; height: 2px; border-radius: 2px; background: var(--brun); transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- fil d'ariane ---------- */
.ariane { background: var(--sable); border-bottom: 1px solid rgba(46,38,34,.08); }
.ariane ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 11px 0; font-size: 13.5px; color: var(--texte-4); }
.ariane li + li::before { content: "\00b7"; margin-right: 8px; color: var(--texte-5); }
.ariane a { color: var(--texte-4); }
.ariane [aria-current] { color: var(--brun); font-weight: 700; }

/* ---------- grilles et cartes ---------- */
.grille { display: grid; gap: clamp(16px, 2vw, 22px); }
.g-180 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.g-210 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.g-250 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.g-280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g-300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g-2 { grid-template-columns: 1fr 1fr; }
.colonnes { display: flex; flex-wrap: wrap; gap: clamp(26px, 4vw, 56px); }
.col { flex: 1 1 420px; min-width: 280px; }
.col--media { flex: 1 1 360px; min-width: 280px; }
.col--etroite { flex: 1 1 340px; max-width: 470px; }
.aligne-centre { align-items: center; }
.entre { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; }

.carte { background: #fff; border: 1px solid rgba(46,38,34,.08); border-radius: var(--r-m); padding: 22px; }
.carte--sable { background: var(--sable); border-color: transparent; }
.carte--creme { background: var(--creme); border-color: transparent; }
.carte--sombre { background: rgba(251,246,239,.07); border-color: transparent; color: var(--sur-brun); }
.carte--sombre h3 { color: var(--creme); }
.carte h3 { font-size: 20px; }
.carte p { margin-top: 8px; font-size: 15.5px; line-height: 1.68; color: var(--texte-3); }
.carte--sombre p { color: var(--sur-brun-3); }
.carte__num {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--sable); color: var(--accent); font-family: var(--titre); font-weight: 700; font-size: 19px;
  margin-bottom: 14px;
}
.carte--sombre .carte__num { background: var(--beige); color: var(--brun); }

.carte-media { background: #fff; border: 1px solid rgba(46,38,34,.08); border-radius: var(--r-l); overflow: hidden; display: flex; flex-direction: column; }
.carte-media--sable { background: var(--sable); border-color: transparent; }
.carte-media--creme { background: var(--creme); border-color: transparent; }
.carte-media__texte { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.carte-media__texte h3 { font-size: 22px; }
.carte-media__texte p { font-size: 15.5px; line-height: 1.68; color: var(--texte-3); }
.lien-suite { margin-top: auto; font-weight: 700; font-size: 15px; }

.info-ligne {
  background: #fff; border: 1px solid rgba(46,38,34,.08); border-radius: var(--r-s);
  padding: 15px 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.info-ligne span { color: var(--texte-5); font-size: 14.5px; }
.info-ligne strong { font-size: 15px; text-align: right; }
.pile { display: flex; flex-direction: column; gap: 12px; }

.encart {
  background: var(--sable); border-radius: var(--r-m); padding: 18px 20px;
  font-size: 15px; line-height: 1.72; color: var(--texte-3);
}
.encart--info { background: #fff; border: 1px solid var(--bord); }
.encart--attention { background: #FBEFE6; border: 1px solid rgba(162,75,42,.25); color: #7A3B22; }

/* ---------- photos ---------- */
.photo { position: relative; overflow: hidden; border-radius: var(--r-m); background: var(--sable-fonce); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--xl { border-radius: var(--r-xl); }
.photo--nette { border-radius: 0; }
.photo__vide {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 12px;
  background-image: repeating-linear-gradient(135deg, rgba(46,38,34,.06) 0 8px, transparent 8px 16px);
}
.photo__vide span {
  font-size: 11.5px; line-height: 1.4; color: var(--texte-3);
  background: rgba(251,246,239,.92); padding: 6px 8px; border-radius: 6px;
}

.galerie-legende { margin-top: 12px; }
.galerie-legende .cat { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.galerie-legende .titre { font-family: var(--titre); font-weight: 700; font-size: 20px; margin-top: 5px; }
.galerie-legende .meta { font-size: 14px; color: var(--texte-4); margin-top: 3px; }
.galerie-legende .desc { font-size: 15px; line-height: 1.65; color: var(--texte-3); margin-top: 8px; }
figure { margin: 0; }

.filtres { display: flex; flex-wrap: wrap; gap: 9px; }
.filtres a.jeton:hover { background: var(--sable); color: var(--brun); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #fff; border: 1px solid rgba(46,38,34,.08); border-radius: var(--r-s); padding: 2px 18px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 0; display: flex; justify-content: space-between;
  gap: 16px; font-family: var(--titre); font-weight: 700; font-size: 19px; color: var(--brun);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--corps); font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { color: var(--accent); }
.faq p { padding-bottom: 18px; font-size: 15.5px; line-height: 1.72; color: var(--texte-3); max-width: 70ch; }

/* ---------- avis ---------- */
.avis { background: #fff; border: 1px solid rgba(46,38,34,.08); border-radius: var(--r-m); padding: 20px; margin: 0; }
.avis p { font-size: 16px; line-height: 1.72; color: var(--texte-2); }
.avis footer { margin-top: 12px; font-size: 14px; color: var(--texte-4); }

/* ---------- formulaire ---------- */
.form { background: var(--sable); border-radius: var(--r-xl); padding: clamp(20px, 2.6vw, 34px); }
.form--creme { background: var(--creme); }
.champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 15px; }
label.champ { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--texte-3); }
.champ input, .champ select, .champ textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--texte);
  padding: 12px 14px; border: 1px solid var(--bord-fort); border-radius: var(--r-s);
  background: #fff; min-height: 46px; width: 100%;
}
.champ textarea { resize: vertical; min-height: 120px; }
.champ input[type="file"] { border-style: dashed; font-size: 14px; padding: 11px 14px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--accent); }
.consentement { display: flex; gap: 11px; align-items: flex-start; margin-top: 16px; font-size: 13.5px; line-height: 1.55; color: var(--texte-3); font-weight: 400; }
.consentement input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--accent); flex: none; }
.aide-champ { font-weight: 400; font-size: 13px; color: var(--texte-4); }
.piege { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.message-ok { background: #EDF6EC; border: 1px solid #B4D4AE; border-radius: var(--r-s); padding: 14px 16px; font-size: 15px; line-height: 1.6; color: #2C5426; }
.message-ko { background: #FBEFE6; border: 1px solid rgba(162,75,42,.3); border-radius: var(--r-s); padding: 14px 16px; font-size: 15px; line-height: 1.6; color: #7A3B22; }

.contact-lien { border-radius: var(--r-m); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.contact-lien--brun { background: var(--brun); color: var(--creme); }
.contact-lien--brun:hover { background: var(--accent); color: var(--creme); }
.contact-lien--sable { background: var(--sable); color: var(--brun); }
.contact-lien--sable:hover { background: var(--beige); color: var(--brun); }
.contact-lien--blanc { background: #fff; border: 1px solid rgba(46,38,34,.08); color: var(--texte); }
.contact-lien .cl-label { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; opacity: .82; }
.contact-lien .cl-valeur { font-family: var(--titre); font-weight: 700; font-size: 23px; }
.contact-lien .cl-valeur--petit { font-family: var(--corps); font-weight: 700; font-size: 17px; word-break: break-word; }

/* ---------- appel a l'action de bas de page ---------- */
.cta-bas { background: var(--sable); border-top: 1px solid rgba(46,38,34,.08); }
.cta-bas__in { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding-top: clamp(36px,4.5vw,64px); padding-bottom: clamp(36px,4.5vw,64px); }

/* ---------- pied de page ---------- */
.pied { background: var(--brun); color: var(--sur-brun); }
.pied__in { display: flex; flex-wrap: wrap; gap: clamp(26px, 4vw, 56px); padding-top: clamp(40px,5vw,68px); padding-bottom: clamp(30px,4vw,48px); }
.pied a { color: var(--sur-brun); }
.pied a:hover { color: var(--beige); }
.pied__titre { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sur-brun-2); }
.pied__liens { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.pied__bas { border-top: 1px solid rgba(251,246,239,.12); }
.pied__bas div { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; font-size: 13.5px; color: var(--sur-brun-2); }
.pied .logo__rond { background: var(--beige); color: var(--brun); }
.pied .logo__nom { color: var(--creme); }
.pied .logo__baseline { color: var(--sur-brun-2); }

/* ---------- barre d'action mobile ---------- */
.barre-mobile { display: none; }

/* ---------- pages legales ---------- */
.legal h2 { font-size: 24px; margin-top: 36px; }
.legal h3 { font-size: 19px; margin-top: 20px; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.8; color: var(--texte-2); }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { margin-top: 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 9px; }
.legal .bloc { margin-top: 14px; background: var(--sable); border-radius: var(--r-m); padding: 20px; font-size: 16px; line-height: 1.85; }
.legal .bloc--blanc { background: #fff; border: 1px solid var(--bord); }
.a-completer { color: var(--accent); font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav a { padding: 9px 9px; font-size: 14.5px; }
  .entete__tel { display: none; }
}
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; }
  :root { --barre-mobile: 78px; }
  html { scroll-padding-top: 76px; }
  .burger { display: flex; }
  .nav {
    display: none; position: absolute; left: calc(var(--pad-x) * -1); right: calc(var(--pad-x) * -1); top: 100%;
    background: var(--creme); border-bottom: 1px solid var(--bord);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--pad-x) 18px; box-shadow: 0 16px 30px rgba(46,38,34,.12);
  }
  .nav--ouvert { display: flex; }
  .nav a { padding: 14px 12px; border-radius: var(--r-s); font-size: 16.5px; }
  .entete__actions { display: none; }
  .barre-mobile {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 12px var(--pad-x) calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(rgba(251,246,239,0), var(--creme) 42%);
  }
  .barre-mobile .btn { box-shadow: 0 6px 18px rgba(46,38,34,.16); }
}
@media (max-width: 560px) {
  .info-ligne { flex-direction: column; gap: 4px; }
  .info-ligne strong { text-align: left; }
  .cta-bas__in { align-items: flex-start; }
  .boutons .btn { flex: 1 1 100%; }
  .g-2 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media print {
  .entete, .barre-mobile, .cta-bas, .ariane { display: none !important; }
  body { background: #fff; padding-bottom: 0; }
}
