/* =========================================
   1. VARIABLES & BASE
========================================= */

@font-face { font-family: "Avenir Argiliere"; src: local("Avenir Light"), url("../fonts/Avenir/Avenir-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Avenir Argiliere"; src: local("Avenir Book"), url("../fonts/Avenir/Avenir-Book.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Avenir Argiliere"; src: local("Avenir Book Oblique"), url("../fonts/Avenir/Avenir-BookOblique.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Avenir Argiliere"; src: local("Avenir Medium"), url("../fonts/Avenir/Avenir-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Avenir Argiliere"; src: local("Avenir Medium Oblique"), url("../fonts/Avenir/Avenir-MediumOblique.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Avenir Argiliere"; src: local("Avenir Heavy"), url("../fonts/Avenir/Avenir-Heavy.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Avenir Argiliere"; src: local("Avenir Heavy Oblique"), url("../fonts/Avenir/Avenir-HeavyOblique.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Avenir Argiliere"; src: local("Avenir Black"), url("../fonts/Avenir/Avenir-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --bg: #fbf7f2;
  --ink: #2d231d;
  --muted: #6d5950;
  --paper: #fffdf9;
  
  /* PALETTE EXACTE */
  --argile: #D28F66;
  --argile-strong: #D28F66;
  --ficelle: #CFB69A;
  --blush: #EFC265; 
  --lin: #F5E9D9;
  --teint: #BF9474;
  --terracotta: #9F765F;
  --khol: #8A6052;
  --gris: #DEDFE0; 
  
  --terra: var(--terracotta);
  --terra-2: var(--khol);
  --sand: var(--ficelle);
  --clay: var(--blush);
  --mist: var(--lin);
  
  --shadow: 0 16px 38px rgba(45,35,29,.10);
  --shadow-soft: 0 12px 28px rgba(45,35,29,.06);
  --radius: 22px;
  --font-ui: "Avenir Argiliere", "Avenir", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  margin: 0;
  background: radial-gradient(1200px 600px at 18% 0%, rgba(210,143,102,.12), transparent 60%), radial-gradient(1000px 500px at 85% 18%, rgba(207,182,154,.24), transparent 55%), var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.55;
  overflow-x: hidden; 
}

body, button, input, textarea, select { font-family: var(--font-ui); }
a { color: inherit; }
a:hover { text-decoration: none; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.skip-link { position: absolute; left: -9999px; top: 12px; background: var(--paper); padding: 10px 12px; border-radius: 10px; box-shadow: var(--shadow); }
.skip-link:focus { left: 12px; z-index: 50; }

.site-header { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(10px); background: rgba(251,247,242,.82); border-bottom: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { display: block; width: clamp(150px, 22vw, 220px); height: auto; }
.site-status { margin: 0; max-width: 32ch; text-align: right; font-size: 15px; font-weight: 500; color: rgba(45,35,29,.78); }

.hero { position: relative; padding: clamp(38px, 6vw, 72px) 0 36px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(430px, .98fr); gap: 48px; align-items: start; }
.hero-copy { padding-top: 8px; }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 999px; background: rgba(210,143,102,.10); border: 1px solid rgba(159,118,95,.18); color: rgba(45,35,29,.86); font-weight: 700; margin: 0 0 14px 0; }

/* =========================================
   2. TYPOGRAPHIE (H2 et Titres)
========================================= */

h1, h2, h3, h4, h5, h6, .blob__title, .panel-title, .tech-card h4, .featured-note, .tech-card--visual { font-family: var(--font-ui); }

/* Titres H2 standardisés, sans clamp, taille fixe, tout en majuscules */
h2, .display-caps { 
  font-size: 32px; 
  text-transform: uppercase; 
  letter-spacing: .05em; 
  line-height: 1.15; 
  color: var(--argile-strong); 
  margin: 0 0 20px 0; 
  font-weight: 700; 
}

.display-caps .accent { color: var(--khol); }

h3 { margin: 0; font: inherit; }
.accent { color: rgba(45,35,29,.82); }

.blob__text, .featured-text, .lead, .lead-small, .info-soft { font-weight: 400; }
.lead, .lead-small { font-size: 17px; color: rgba(45,35,29,.82); margin: 0; max-width: 62ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 20px; }
.btn, .reveal-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 999px; text-decoration: none; font: inherit; font-weight: 600; border: 1px solid transparent; transition: transform .08s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease; cursor: pointer; }
.btn:active, .reveal-btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terracotta); color: #fff; border-color: rgba(45,35,29,.08); box-shadow: 0 14px 30px rgba(159,118,95,.22); }
.btn-primary:hover { background: var(--khol); }
.btn-ghost { background: rgba(255,253,249,.7); border-color: rgba(45,35,29,.14); }
.btn-ghost:hover { background: rgba(255,253,249,.9); }

/* =========================================
   3. STAGE VEDETTE & INFOS
========================================= */

.section { padding: 28px 0 56px; }
.feature-section { padding-top: 24px; }
.featured-shell { position: relative; background: rgba(255,253,249,.58); border: 1px solid rgba(31, 27, 22, .08); border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 4vw, 42px); box-shadow: var(--shadow-soft); overflow: hidden; }
.featured-top { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(350px, .98fr); gap: 34px; align-items: start; position: relative; z-index: 1; }
.featured-badge { display: inline-block; margin-bottom: 18px; padding: 10px 22px; background: var(--ficelle); color: var(--ink); border-radius: 39% 61% 47% 53% / 53% 45% 55% 47%; font-weight: 700; font-size: 15px; border: 1px solid rgba(159,118,95,.12); }
.featured-text { font-size: 18px; line-height: 1.6; color: rgba(31, 27, 22, .82); }
.featured-main { background: rgba(255,253,249,.64); padding: 32px; margin-top: 40px; border-radius: var(--radius); border: 1px solid rgba(31,27,22,.05); }
.featured-main--flow { display: grid; gap: 24px; }
.panel-kicker { display: inline-flex; padding: 9px 16px; border-radius: 999px; background: rgba(210, 143, 102, .10); border: 1px solid rgba(159, 118, 95, .16); font-size: 13px; font-weight: 800; text-transform: uppercase; color: var(--ink); }

.tech-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tech-card { background: rgba(245, 233, 217, .74); border: 1px solid rgba(159, 118, 95, .10); border-radius: 18px; padding: 16px 22px 22px; }
.tech-card h4 { font-family: var(--font-ui); font-size: 22px; font-style: italic; font-weight: 500; margin-top: 0; margin-bottom: 12px; color: var(--terra); }
.tech-card ul { list-style: none; padding: 0; display: grid; gap: 10px; margin: 0; }
.tech-card li { position: relative; padding-left: 18px; color: rgba(31, 27, 22, .78); font-size: 15px;}
.tech-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--sand); }

.featured-aside { background: rgba(245, 233, 217, .74); padding: 32px; border-radius: var(--radius); border: 1px solid rgba(159, 118, 95, .14); margin-top: 10px; }
.panel-title { font-size: 14px; text-transform: uppercase; font-weight: 700; letter-spacing: .08em; color: var(--terra); border-bottom: none; padding-bottom: 12px; margin-bottom: 24px; }
.info-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 28px; }
.info-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.info-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--terra); background: rgba(210, 143, 102, .10); }
.info-strong { font-weight: 700; margin: 0; font-size: 15px;}
.info-soft { font-size: 15px; color: rgba(31, 27, 22, .68); margin: 0; }

/* =========================================
   4. SECTION CONTACT & FOOTER
========================================= */

.contact{ background: rgba(255,253,249,.58); border: 1px solid rgba(31,27,22,.08); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 4vw, 36px); box-shadow: 0 14px 30px rgba(31,27,22,.06); }
.contact-head{ display: grid; gap: 10px; max-width: 70ch; }
.contact-link{ display: inline-block; }
.address-location-icon{ width: 20px; height: auto; }
.reveal-group{ width: 100%; margin: 0 auto; }
.reveal-btn{ appearance: none; width: 100%; cursor: pointer; background: rgba(255,253,249,.84); border-color: rgba(31,27,22,.14); box-shadow: 0 8px 18px rgba(31,27,22,.06); }
.reveal-btn:hover{ background: rgba(255,253,249,.96); }
.reveal-link{ display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 12px 18px; border-radius: 999px; background: rgba(255,253,249,.92); border: 1px solid rgba(31,27,22,.14); box-shadow: 0 8px 18px rgba(31,27,22,.06); font-weight: 600; font-size: 16px; }
.reveal-value a, .contact-link, .reveal-link{ text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.muted{ color: rgba(31,27,22,.68); }
.site-footer{ border-top: 1px solid rgba(31,27,22,.08); padding: 22px 0 28px; }
.footer-inner{ display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.site-footer p{ margin: 0; }

/* =========================================
   5. BLOBS PNG - DIMENSIONS & COMPORTEMENT 
========================================= */

.blob {
  isolation: isolate;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

.blob::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  filter: drop-shadow(0 16px 30px rgba(45,35,29,.10));
  z-index: 0;
  transform: scale(var(--blob-scale, 1.35)) !important; 
}

.blob--image-argile::before { background-image: url("../img/blob/PATATE-ARGILE.png"); }
.blob--image-ficelle::before { background-image: url("../img/blob/FICELLE.png"); }
.blob--image-khol::before { background-image: url("../img/blob/KHOL.png"); }
.blob--image-lin::before { background-image: url("../img/blob/LIN.png"); }
.blob--image-sand::before { background-image: url("../img/blob/SAND.png"); }
.blob--image-teint::before { background-image: url("../img/blob/TEINT.png"); }
.blob--image-terracotta::before { background-image: url("../img/blob/TERRACOTA.png"); }

.blob__inner {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px !important;
  z-index: 1;
}

.blob__inner > * {
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
}

.blob__title {
  font-size: clamp(14px, 1.18vw, 18px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .22em;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 12px;
  align-items: center;
  text-align: center;
}

.blob__text {
  font-size: clamp(14px, 1.08vw, 16px);
  line-height: 1.6;
  margin: 0;
  align-items: center;
  text-align: center;
}


/* =========================================
   6. POSITIONS & ÉCHELLES DES BLOBS
========================================= */

.hero-blobs--infos, .hero-blobs--stage { position: relative; }
.hero-blobs--infos { min-height: 560px; }
.hero-blobs--stage { min-height: 320px; }
.hero-blobs--infos .blob, .hero-blobs--stage .blob { position: absolute; height: auto; }

.hero-blobs--infos .blob--hero-1 { width: 38%; aspect-ratio: 1.1; left: 0; top: 45%; z-index: 1; --blob-scale: 1.35; }
.hero-blobs--infos .blob--hero-2 { width: 60%; aspect-ratio: 1.25; right: -5%; top: 32%; z-index: 2; --blob-scale: 1.45; } 
.hero-blobs--infos .blob--hero-3 { width: 55%; aspect-ratio: 1.1; left: 15%; top: -5%; z-index: 3; --blob-scale: 1.4; }

.hero-blobs--stage .blob--stage-1 { width: 32%; aspect-ratio: 1; left: 0; top: 22%; z-index: 2; --blob-scale: 1.45; }
.hero-blobs--stage .blob--stage-2 { width: 40%; aspect-ratio: 1.15; left: 44%; transform: translateX(-50%); top: 0; z-index: 1; --blob-scale: 1.60; }
.hero-blobs--stage .blob--stage-3 { width: 40%; aspect-ratio: 1.1; right: 0; top: 15%; z-index: 3; --blob-scale: 1.5; }

/* SECTION CONTACT */
/*.contact-blobs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.contact-blobs .blob { position: relative; width: 100%; height: 100%; }

.blob--contact-1 { grid-column: span 5; min-height: 380px; --blob-scale: 1.30; }
.blob--contact-1 .blob__inner > * { max-width: 70%; } 

.blob--contact-2 { grid-column: span 4; min-height: 380px; --blob-scale: 1.35; }
.blob--contact-3 { grid-column: span 5; min-height: 280px; --blob-scale: 1.35; --blob-rotate: -45deg;}
.blob--contact-4 { grid-column: span 5; min-height: 240px; --blob-scale: 1.35; }

.contact-blobs .blob__inner > div:first-child { display: grid; gap: 8px; justify-items: center; width: 100%; } */ 

/* SECTION CONTACT */
.contact-blobs { 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center; /* C'est cette ligne qui centre parfaitement le tout ! */
  align-items: center; /* Centre verticalement pour plus d'harmonie */
  gap: 30px; 
  margin-top: 40px; 
}
.contact-blobs .blob { 
  position: relative; 
}

/* On remplace les "grid-column: span X" par des pourcentages de largeur (width) */
.blob--contact-1 { width: 44%; min-height: 380px; --blob-scale: 1.35; }
.blob--contact-1 .blob__inner > * { max-width: 70%; } 

.blob--contact-2 { width: 36%; min-height: 380px; --blob-scale: 1.25; }

.blob--contact-3 { width: 40%; min-height: 280px; --blob-scale: 1.55; --blob-rotate: -45deg;}
.blob--contact-4 { width: 40%; min-height: 240px; --blob-scale: 1.55; }

.contact-blobs .blob__inner > div:first-child { display: grid; gap: 8px; justify-items: center; width: 100%; }


/* =========================================
   7. CONTRASTES AUTO (Texte Noir/Blanc)
========================================= */

/* Sombres => Texte Blanc */
.blob--image-argile .blob__title, .blob--image-argile .blob__text,
.blob--image-terracotta .blob__title, .blob--image-terracotta .blob__text,
.blob--image-khol .blob__title, .blob--image-khol .blob__text,
.blob--image-teint .blob__title, .blob--image-teint .blob__text {
  color: #ffffff !important;
}
.blob--image-argile .muted, .blob--image-terracotta .muted,
.blob--image-khol .muted, .blob--image-teint .muted {
  color: rgba(255,255,255,0.8) !important;
}

/* Boutons dans sombres */
.blob--image-terracotta .reveal-btn, .blob--image-argile .reveal-btn,
.blob--image-teint .reveal-btn, .blob--image-khol .reveal-btn,
.blob--image-terracotta .reveal-link, .blob--image-argile .reveal-link,
.blob--image-teint .reveal-link, .blob--image-khol .reveal-link {
  background: rgba(255,255,255,.16) !important;
  border-color: rgba(255,255,255,.24) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.blob--image-terracotta .reveal-btn:hover, .blob--image-argile .reveal-btn:hover { background: rgba(255,255,255,.26) !important; }

/* Claires => Texte Khol */
.blob--image-ficelle .blob__title, .blob--image-ficelle .blob__text,
.blob--image-lin .blob__title, .blob--image-lin .blob__text,
.blob--image-sand .blob__title, .blob--image-sand .blob__text {
  color: var(--khol) !important;
}
.blob--contact-1 .reveal-btn, .blob--contact-1 .reveal-link,
.blob--contact-3 .reveal-btn, .blob--contact-3 .reveal-link,
.blob--contact-4 .reveal-btn, .blob--contact-4 .reveal-link{
  background: rgba(255,253,249,.88); color: rgba(45,35,29,.92);
}

/* =========================================
   8. ENCARTS TEXTES (Fond Argile)
========================================= */

.tech-card--visual, .featured-note {
  grid-column: 1 / -1; 
  text-align: center;
  background: var(--argile-strong) !important;
  color: #ffffff !important;
  border: none !important;
  border-left: 4px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 14px;
  padding: 24px 32px !important;
  font-family: var(--font-ui);
  box-shadow: var(--shadow-soft);
  margin-top: 10px;
}

.tech-card--visual .tech-visual-text, .featured-note {
  color: #ffffff !important;
  font-size: clamp(17px, 2vw, 19px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.65;
  margin: 0;
}

/* =========================================
   9. RESPONSIVE MOBILE
========================================= */

@media (max-width: 980px) {
  .header-inner, .hero-grid, .featured-top { grid-template-columns: 1fr; }
  .header-inner { align-items: flex-start; }
  .site-status { max-width: none; text-align: left; }
  .tech-grid { grid-template-columns: 1fr; }
  
  .hero-blobs--infos, .hero-blobs--stage, .contact-blobs {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 40px !important;
    min-height: auto !important;
    padding: 30px 0;
  }
  
  .hero-blobs--infos .blob, .hero-blobs--stage .blob, .contact-blobs .blob {
    position: relative !important;
    width: 100% !important;
    max-width: 400px !important; 
    min-height: 340px !important;
    inset: auto !important;
    transform: none !important;
    aspect-ratio: auto !important;
  }
}

@media (max-width: 680px) {
  h2, .display-caps { font-size: 26px; } /* Légère adaptation auto sur très petit écran */
  .container { width: min(1120px, calc(100% - 24px)); }
  .hero-actions, .featured-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .info-list { grid-template-columns: 1fr; }
  .hero-blobs--infos .blob, .hero-blobs--stage .blob, .contact-blobs .blob { min-height: 280px !important; }
}