/* ===== COTT&COM — Styles v5 ===== */
:root {
  /* Couleurs */
  --bg:     #FCF8F4;
  --brand:  #3C8095;
  --red:    #C0392B;
  --dark:   #1e3a45;
  --white:  #fff;
  --border: #e4dbd0;
  --soft:   #5a6e76;
  --radius: 20px;
  --max:    1100px;

  /* ── SYSTÈME TYPOGRAPHIQUE ─────────────────────────────
   *  T1 · Grands titres (H1 hero, bandeau page)
   *       MavenPro Bold/Black · clamp fluide
   *
   *  T2 · Titres de section (H2 blocs accueil, galerie)
   *       MavenPro Bold
   *
   *  T3 · Corps principal (textes, accroches, pitch, formulaire)
   *       Eras Demi
   *
   *  T4 · Petits éléments (nav, labels, boutons, méta, légendes)
   *       MavenPro Bold uppercase ou Eras Demi
   * ───────────────────────────────────────────────────── */
  --t1: clamp(1.7rem, 3.2vw, 2.8rem);
  --t2: clamp(1.2rem, 2vw, 1.7rem);
  --t3: 1rem;
  --t4: 0.78rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

@font-face { font-family:'MavenPro'; src:url('../fonts/MavenPro-Regular.ttf') format('truetype'); font-weight:400; font-display:swap; }
@font-face { font-family:'MavenPro'; src:url('../fonts/MavenPro-Medium.ttf') format('truetype'); font-weight:500; font-display:swap; }
@font-face { font-family:'MavenPro'; src:url('../fonts/MavenPro-Bold.ttf') format('truetype'); font-weight:700; font-display:swap; }
@font-face { font-family:'MavenPro'; src:url('../fonts/MavenPro-Black.ttf') format('truetype'); font-weight:900; font-display:swap; }
@font-face { font-family:'Eras'; src:url('../fonts/ErasLight.otf') format('opentype'); font-weight:300; font-display:swap; }
@font-face { font-family:'Eras'; src:url('../fonts/ErasDemi.otf') format('opentype'); font-weight:600; font-display:swap; }
@font-face { font-family:'Eras'; src:url('../fonts/ErasBold.otf') format('opentype'); font-weight:700; font-display:swap; }

body {
  font-family: 'Eras', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--dark);
  font-size: var(--t3);
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
strong, b { font-weight: 700; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--brand);
  box-shadow: 0 2px 16px rgba(0,0,0,.18);
}
.header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; height: 64px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; position: relative; }
.logo img { height: 36px; width: auto; max-width: 220px; object-fit: contain; object-position: left center; }
.logo.active::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--red);
}
.header-spacer { flex: 1; }

nav ul { list-style: none; display: flex; gap: 2px; }
nav a {
  font-family: 'MavenPro', sans-serif;
  font-size: var(--t4); font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 7px 13px;
  color: rgba(255,255,255,.82);
  position: relative; transition: color .2s;
}
nav a::after {
  content: ''; position: absolute;
  bottom: 4px; left: 13px; right: 13px; height: 2px;
  background: var(--red);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
nav a:hover { color: var(--white); }
nav a:hover::after, nav a.active::after { transform: scaleX(1); }
nav a.active { color: var(--white); font-weight: 700; }

.burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 6px;
}
.burger span {
  display: block; width: 24px; height: 2px;
  background: rgba(255,255,255,.9); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ACCUEIL ===== */
.home-hero-wrap {
  /* Pas de cadre sur le wrap — la photo garde son ratio naturel */
}
.home-hero {
  position: relative; width: 100%;
  height: clamp(300px, 42vw, 500px);
  overflow: hidden;
  outline: 3px solid var(--dark);
  outline-offset: -3px;
}
.home-hero-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
}
.home-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(transparent 45%, rgba(30,58,69,.55));
  z-index: 1; pointer-events: none;
}
/* DÉCOUVRIR — fond rouge, flèche fine ↓ dans le texte */
.home-hero-decouvrir {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  display: inline-block;
  font-family: 'MavenPro', sans-serif;
  font-size: var(--t3); font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--white);
  background: var(--red);
  padding: 10px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s, background .2s;
}
.home-hero-decouvrir:hover {
  transform: translateX(-50%) translateY(5px);
  background: #a93226;
}

/* ===== BLOCS ACCUEIL ===== */
.home-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 48px 40px;
}

.home-block-img-wrap { padding: 16px; }
.home-block-text {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-block-img-wrap.photo  { grid-column: 1; grid-row: 1; }
.home-block-text.photo      { grid-column: 2; grid-row: 1; text-align: left; }

.home-block-text.illus      { grid-column: 1; grid-row: 2; text-align: right; }
.home-block-img-wrap.illus  { grid-column: 2; grid-row: 2; }

.home-block-img-wrap.graph  { grid-column: 1; grid-row: 3; }
.home-block-text.graph      { grid-column: 2; grid-row: 3; text-align: left; }

.home-block-img-wrap.photo img { outline: 3px solid var(--dark); }

.home-block-img {
  display: block;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  height: auto;
}
.home-block-text.photo,
.home-block-text.graph { align-self: center; }
.home-block-img-wrap.illus { display: flex; justify-content: flex-end; }

.home-block-text h2 {
  font-family: 'MavenPro', sans-serif;
  font-size: var(--t2); font-weight: 700;
  color: var(--brand); line-height: 1.2; margin-bottom: 10px;
}
.home-block-text .accroche {
  font-size: var(--t3); color: var(--soft); line-height: 1.75;
}

/* ===== BOUTON ===== */
.cta-wrap { text-align: center; padding: 52px 24px; }
.btn {
  display: inline-block;
  font-family: 'MavenPro', sans-serif;
  font-size: var(--t3); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 14px 38px;
  background: var(--brand); color: var(--white);
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background .22s, color .22s, border-color .22s;
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--brand); border-color: var(--brand); }

/* ===== BANDEAU HÉRO PAGE INTÉRIEURE ===== */
.page-banner {
  position: relative; width: 100%;
  height: 320px;
  overflow: hidden;
}
.page-banner.framed { outline: 4px solid var(--dark); }

.page-banner-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  display: block;
}
.page-banner-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(30,58,69,.70));
  padding: 56px 40px 28px; z-index: 2;
  text-align: left;
}
.page-banner-caption h1 {
  font-family: 'MavenPro', sans-serif;
  font-size: var(--t1); font-weight: 400;
  color: var(--white); line-height: 1.2;
  text-align: left;
}
/* Sous-titre bandeau : MavenPro Regular, nettement plus petit, lisible */
.page-banner-caption .sous-titre {
  font-family: 'MavenPro', sans-serif;
  font-weight: 400;
  font-size: var(--t3);
  color: rgba(255,255,255,.88); margin-top: 10px;
  line-height: 1.5;
  text-align: left;
}

/* ===== BANDEAU COULEUR ===== */
.color-band { background: var(--bg); padding: 40px 32px; }
.color-band-inner { max-width: var(--max); margin: 0 auto; }
.color-band h2 {
  font-family: 'MavenPro', sans-serif;
  font-size: var(--t2); font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  text-align: center;
}
.color-band .accroche,
.color-band .sous-titre {
  font-family: 'MavenPro', sans-serif;
  font-size: var(--t2);
  color: var(--dark);
  max-width: 800px; line-height: 1.6;
  text-align: center;
  margin: 0 auto;
}

/* Bandeau contact : garde le fond bleu + texte blanc */
.color-band-blue { background: var(--brand) !important; }
.color-band-blue h2 { color: #fff !important; text-shadow: 0 1px 4px rgba(0,0,0,.25); }
.color-band-blue .accroche,
.color-band-blue .sous-titre { color: #fff !important; text-shadow: 0 1px 3px rgba(0,0,0,.20); }

/* ===== SECTION TITLE ===== */
.section { max-width: var(--max); margin: 0 auto; padding: 64px 32px; }
.section-title {
  font-family: 'MavenPro', sans-serif;
  font-size: var(--t3); font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--brand); text-align: center; margin-bottom: 40px;
}
.section-title::after {
  content: ''; display: block; width: 40px; height: 2px;
  background: var(--red); margin: 10px auto 0; border-radius: 2px;
}

/* ===== GALERIE MASONRY ===== */
.gallery-grid { columns: 3; column-gap: 10px; }
.gallery-grid img {
  width: 100%; margin-bottom: 10px;
  cursor: pointer; break-inside: avoid;
  transition: opacity .2s, transform .2s;
}
.gallery-grid img:hover { opacity: .88; transform: scale(1.015); }

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.92); z-index: 999;
  align-items: center; justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img { max-width: 92vw; max-height: 92vh; }
.lightbox-close {
  position: absolute; top: 20px; right: 28px;
  font-size: 2.2rem; color: #fff;
  cursor: pointer; background: none; border: none; line-height: 1;
}
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 2.8rem; color: rgba(255,255,255,.65);
  cursor: pointer; background: none; border: none;
  padding: 12px; transition: color .2s;
}
.lightbox-prev:hover, .lightbox-next:hover { color: #fff; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ===== BLOG ===== */
.blog-intro {
  max-width: var(--max); margin: 40px auto -10px;
  padding: 0 32px 0 36px;
  border-left: 4px solid var(--red);
}
.blog-intro p {
  font-size: var(--t3); color: var(--soft);
  line-height: 1.75; padding: 12px 0 12px 20px;
  font-style: italic;
}
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  display: block; background: var(--white);
  border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.10); }
.blog-card-img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.blog-card-body { padding: 18px 16px; }
.blog-card-meta {
  font-family: 'MavenPro', sans-serif;
  font-size: var(--t4); font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--red); margin-bottom: 8px;
}
.blog-card-body h3 {
  font-family: 'MavenPro', sans-serif;
  font-size: var(--t3); font-weight: 700;
  color: var(--brand); margin-bottom: 6px; line-height: 1.3;
}
.blog-card-body p { font-size: var(--t3); color: var(--soft); line-height: 1.6; }

/* ===== ARTICLE ===== */
.article-body { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.article-body h1 {
  font-family: 'MavenPro', sans-serif;
  font-size: var(--t1); font-weight: 400;
  color: var(--dark); line-height: 1.25; margin-bottom: 24px;
}
.article-body h2 {
  font-family: 'MavenPro', sans-serif;
  font-size: var(--t2); font-weight: 700;
  color: var(--brand); margin: 36px 0 12px;
  text-transform: uppercase; letter-spacing: .06em;
}
.article-body p { margin-bottom: 18px; line-height: 1.85; }
.article-body strong { font-weight: 700; }
.article-back {
  font-family: 'MavenPro', sans-serif;
  font-size: var(--t4); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand); display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 32px;
}
.article-back:hover { color: var(--dark); }
.article-tag {
  display: inline-block; font-size: var(--t4); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  background: #ddeef3; color: var(--dark);
  padding: 3px 12px; border-radius: 99px; margin-bottom: 20px;
}

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.contact-info h2 {
  font-family: 'MavenPro', sans-serif;
  font-size: var(--t3); font-weight: 700;
  color: var(--brand); margin-bottom: 12px;
}
.contact-info p { margin-bottom: 8px; color: var(--soft); font-size: var(--t3); }
.contact-info a { color: var(--brand); }
.contact-info a:hover { text-decoration: underline; }
.contact-pitch {
  border-left: 4px solid var(--red);
  padding: 16px 20px; margin-top: 22px;
  border-radius: 0 8px 8px 0;
  background: #ede7df;
}
.contact-pitch p { font-size: var(--t3); color: var(--dark); line-height: 1.7; margin-bottom: 8px; }
.contact-pitch p:last-child { margin-bottom: 0; }
.contact-pitch strong { font-weight: 700; }
.social-links { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.social-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--brand); font-size: var(--t3);
  text-decoration: none; transition: color .2s;
}
.social-link:hover { color: var(--dark); }
.social-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.social-link span { font-family: 'MavenPro', sans-serif; font-size: var(--t4); font-weight: 500; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label {
  font-family: 'MavenPro', sans-serif;
  font-size: var(--t4); font-weight: 700;
  color: var(--soft); text-transform: uppercase;
  letter-spacing: .06em; display: block; margin-bottom: 4px;
}
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: 'Eras', sans-serif; font-weight: 300;
  font-size: var(--t3); background: var(--white);
  color: var(--dark); transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--brand); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.newsletter-check {
  padding: 14px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  border-left: 4px solid var(--brand);
}
.check-label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.check-label input[type="checkbox"] { display: none; }
.check-box {
  flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px;
  border: 1.5px solid var(--brand); border-radius: 4px; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.check-label input:checked + .check-box { background: var(--brand); border-color: var(--brand); }
.check-label input:checked + .check-box::after { content: '✓'; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.check-text {
  font-family: 'Eras', sans-serif;
  font-size: var(--t3); font-weight: 300;
  color: var(--dark); line-height: 1.5;
}
.check-text strong {
  font-family: 'MavenPro', sans-serif;
  font-weight: 700; font-size: var(--t4);
  text-transform: uppercase; letter-spacing: .04em;
}
.check-text small { font-size: var(--t4); color: var(--soft); }
.form-message { padding: 14px 18px; border-radius: 8px; font-size: var(--t3); margin-top: 4px; }
.form-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #4caf50; }
.form-error { background: #fdecea; color: #c62828; border-left: 4px solid var(--red); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  padding: 22px 32px;
  margin-top: auto;
}
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: var(--t3);
}
.footer-inner a { color: rgba(255,255,255,.8); text-decoration: underline; text-underline-offset: 3px; }
.footer-inner a:hover { color: var(--white); }

/* ===== MENTIONS LÉGALES / POLITIQUE ===== */
.ml-body { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.ml-body h2 {
  font-family: 'MavenPro', sans-serif; font-size: var(--t3); font-weight: 700;
  color: var(--brand); text-transform: uppercase; letter-spacing: .06em; margin: 36px 0 10px;
}
.ml-body p { margin-bottom: 12px; line-height: 1.8; }
.ml-body a { color: var(--brand); }
.ml-body a:hover { text-decoration: underline; }
.ml-date { font-size: var(--t4); color: var(--soft); margin-bottom: 32px; font-style: italic; }
.ml-body ul { margin: 8px 0 12px 20px; }
.ml-body ul li { margin-bottom: 6px; line-height: 1.8; }

/* ===== BANDEAU COOKIES ===== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
  background: var(--brand);
  border-top: 3px solid var(--red);
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
}
.cookie-banner-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cookie-banner-inner p {
  color: #fff; font-size: var(--t4); line-height: 1.6;
  flex: 1; min-width: 240px; margin: 0;
}
.cookie-banner-inner a { color: #fff; text-decoration: underline; font-weight: 700; }
.cookie-banner-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.cookie-btn-refuse {
  background: none; border: none; cursor: pointer;
  font-family: 'MavenPro', sans-serif; font-weight: 700;
  font-size: var(--t4); text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.85);
}
.cookie-btn-refuse:hover { color: #fff; }
.cookie-btn-accept {
  font-family: 'MavenPro', sans-serif; font-weight: 700;
  font-size: var(--t4); text-transform: uppercase; letter-spacing: .08em;
  background: var(--red); color: #fff; border: none;
  padding: 10px 24px; border-radius: var(--radius); cursor: pointer;
  transition: background .2s;
}
.cookie-btn-accept:hover { background: #a93226; }
@media (max-width: 540px) {
  .cookie-banner-inner { padding: 14px 20px; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  nav {
    display: none; position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--brand);
    border-top: 2px solid var(--red);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    padding: 12px 24px 20px;
  }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 2px; }
  nav a { display: block; padding: 10px 14px; }
  nav a::after { bottom: 0; }
  .burger { display: flex; }

  .home-block { flex-direction: column; min-height: unset; }
  .home-block.reverse { flex-direction: column; }
  .home-block-img-wrap { flex: unset; width: 100%; padding: 16px 20px 8px; }
  .home-block.reverse .home-block-img-wrap { padding: 16px 20px 8px; }
  .home-block-img-inner { height: 200px; }
  .home-block.reverse .home-block-text { text-align: left; }
  .home-block-text { padding: 8px 20px 24px; }
  .home-hero-decouvrir { font-size: var(--t4); bottom: 20px; }

  .page-banner { height: 50vw; min-height: 200px; }
  .gallery-grid { columns: 2; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .color-band { padding: 24px 20px; }
}

@media (max-width: 540px) {
  .section { padding: 40px 20px; }
  .gallery-grid { columns: 1; }
  .blog-grid { grid-template-columns: 1fr; }
  .home-block-text { padding: 16px 20px; }
  .page-banner-caption { padding: 32px 20px 16px; }
  .header-inner { padding: 0 16px; }
  .cta-wrap { padding: 36px 20px; }
}
