/* ==========================================================
   TIROIR & COTON — PAGE CMS "NOTRE HISTOIRE" — V18
   CSS limité au bloc .tc-histoire-v18
   ========================================================== */
:root {
  --green:#5f7564; --green-dark:#31483a; --cream:#f7f3eb; --beige:#eee7da;
  --ink:#30332f; --muted:#6d706b; --white:#fff; --line:#ddd5c7;
}
*{box-sizing:border-box}
.tc-histoire-v18{max-width:1180px;margin:28px auto;background:white;box-shadow:0 8px 36px #00000012}
h1,h2,h3{font-family:Georgia,"Times New Roman",serif;color:var(--green-dark);font-weight:500;line-height:1.15}
h1{font-size:clamp(40px,5vw,72px);margin:0 0 22px}
h2{font-size:clamp(29px,3vw,43px);margin:0 0 22px}
h3{font-size:25px}
p{margin:0 0 15px}
.hero{display:grid;grid-template-columns:1fr 1.05fr;min-height:600px;background:var(--cream)}
.hero-copy{padding:72px 64px;display:flex;flex-direction:column;justify-content:center}
.eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:12px;color:var(--green);font-weight:700;margin-bottom:18px}
.lead{font-size:19px;max-width:570px}
.hero img,.cover{width:100%;height:100%;object-fit:cover;display:block}
.section{padding:70px 64px;border-top:1px solid #eee}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.grid2.reverse .visual{order:-1}
.visual img{width:100%;display:block;border-radius:3px}
.caption{font-size:12px;color:var(--muted);margin-top:8px}
.gallery3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:26px}
.gallery3 img{width:100%;aspect-ratio:1.15;object-fit:cover;display:block}
.section:first-of-type .gallery3 img{height:280px;aspect-ratio:auto;object-fit:cover}
.year{background:var(--cream);padding:65px 64px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.year-grid{display:grid;grid-template-columns:220px 1fr;gap:46px}
.year-number{font-family:Georgia,serif;font-size:86px;line-height:.9;color:var(--green)}
.name-lines{font-size:19px;margin:20px 0;padding-left:18px;border-left:3px solid var(--green)}
.quote{font-family:Georgia,serif;font-size:29px;line-height:1.4;color:var(--green-dark);margin:28px 0;padding:22px 28px;background:var(--cream);border-left:4px solid var(--green)}
.timeline{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:34px}
.timeline figure{margin:0}
.timeline img{width:100%;aspect-ratio:1;object-fit:cover}
.timeline figcaption{font-size:12px;text-align:center;padding:8px 4px;color:var(--muted)}
.band{padding:70px 64px;background:var(--cream)}
.full-photo{width:100%;max-height:660px;object-fit:cover;display:block}
.details{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px}
.details img{width:100%;height:250px;object-fit:cover}
.depot{display:grid;grid-template-columns:.85fr 1.15fr;gap:48px;align-items:center}
.depot-images{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.depot-images img{width:100%;height:330px;object-fit:cover}
.depot-images img:first-child{grid-column:1/-1;height:430px}
.final{padding:85px 70px;text-align:center;background:#f3f5f0}
.final .quote{max-width:760px;margin:30px auto;font-size:36px;background:white}
.signature{font-family:Georgia,serif;font-style:italic;font-size:30px;color:var(--green);margin-top:30px}

@media(max-width:800px){
 .tc-histoire-v18{margin:0} .hero,.grid2,.year-grid,.depot{grid-template-columns:1fr}
 .hero{min-height:0} .hero-copy,.section,.year,.band,.final{padding:44px 24px}
 .hero img{max-height:520px} .grid2.reverse .visual{order:0}
 .gallery3{grid-template-columns:1fr 1fr} .timeline{grid-template-columns:1fr 1fr}
 .timeline figure:last-child{grid-column:1/-1} .details{grid-template-columns:1fr}
 .details img{height:auto} .depot-images img,.depot-images img:first-child{height:auto}
 .year-number{font-size:65px}
}

.atelier-details{
 display:grid;
 grid-template-columns:repeat(3,1fr);
 gap:14px;
 margin-top:18px;
}
.atelier-details figure{margin:0}
.atelier-details img{
 width:100%;
 height:300px;
 object-fit:cover;
 display:block;
 border-radius:14px;
}
.atelier-details figcaption{
 margin-top:8px;
 font-size:.9rem;
 color:#6d6d65;
 text-align:center;
}
@media(max-width:700px){
 .atelier-details{grid-template-columns:1fr 1fr}
 .atelier-details figure:first-child{grid-column:1/-1}
 .atelier-details img{height:260px}
}


.atelier-selection figure{margin:0}.atelier-selection figcaption{font-size:13px;color:#746f66;margin-top:7px;text-align:center}.atelier-selection img{border-radius:18px;}

/* V16 — compactage visuel réel */
.tc-histoire-v18{margin:16px auto}
h1{margin-bottom:14px}
h2{margin-bottom:14px}
p{margin-bottom:11px}
.hero{min-height:470px}
.hero-copy{padding:46px 52px}
.eyebrow{margin-bottom:10px}
.section{padding:44px 54px}
.grid2{gap:34px}
.gallery3{margin-top:16px;gap:10px}
.gallery3 img{aspect-ratio:1.28}
.section:first-of-type .gallery3 img{height:220px}
.year{padding:44px 54px}
.year-grid{gap:32px}
.year-number{font-size:72px}
.name-lines{margin:13px 0}
.quote{margin:18px 0;padding:16px 22px;font-size:26px}
.timeline{margin-top:20px;gap:8px}
.timeline figcaption{padding:5px 3px}
.band{padding:44px 54px}
.full-photo{max-height:500px}
.details{gap:10px;margin-top:10px}
.details img{height:205px}
.depot{gap:34px}
.depot-images img{height:250px}
.depot-images img:first-child{height:320px}
.final{padding:52px 54px}
.final .quote{margin:18px auto;font-size:31px}
.signature{margin-top:18px}
.atelier-details{margin-top:12px;gap:10px}
.atelier-details img{height:240px}
@media(max-width:800px){
 .hero-copy,.section,.year,.band,.final{padding:32px 20px}
 .gallery3{margin-top:12px}
 .section:first-of-type .gallery3 img{height:180px}
 .timeline{margin-top:14px}
 .atelier-details img{height:220px}
}


/* V15 — mise en page plus compacte, contenu inchangé */
@media (min-width:761px){
  .tc-histoire-v18{margin:18px auto}
  .hero{min-height:500px}
  .hero-copy{padding:48px 54px}
  .section{padding:46px 64px}
  .year{padding:46px 64px}
  .band{padding:46px 64px}
  .final{padding:56px 70px}
  h1{margin-bottom:15px}
  h2{margin-bottom:15px}
  p{margin-bottom:11px}
  .grid2{gap:38px}
  .gallery3{margin-top:18px}
  .year-grid{gap:36px}
  .name-lines{margin:14px 0}
  .quote{margin:18px 0;padding:17px 24px}
  .timeline{margin-top:22px}
  .depot{gap:38px}
  .depot-images img:first-child{height:350px}
  .final .quote{margin:20px auto;font-size:32px}
  .signature{margin-top:20px}
}
@media (max-width:760px){
  .hero-copy,.section,.year,.band,.final{padding:32px 20px}
  h1,h2{margin-bottom:14px}
  p{margin-bottom:10px}
  .gallery3,.timeline{margin-top:16px}
  .quote{margin:16px 0;padding:16px 18px}
}

/* V16 — compactage visuel réel */
.tc-histoire-v18{margin:16px auto}
h1{margin-bottom:14px}
h2{margin-bottom:14px}
p{margin-bottom:11px}
.hero{min-height:470px}
.hero-copy{padding:46px 52px}
.eyebrow{margin-bottom:10px}
.section{padding:44px 54px}
.grid2{gap:34px}
.gallery3{margin-top:16px;gap:10px}
.gallery3 img{aspect-ratio:1.28}
.section:first-of-type .gallery3 img{height:220px}
.year{padding:44px 54px}
.year-grid{gap:32px}
.year-number{font-size:72px}
.name-lines{margin:13px 0}
.quote{margin:18px 0;padding:16px 22px;font-size:26px}
.timeline{margin-top:20px;gap:8px}
.timeline figcaption{padding:5px 3px}
.band{padding:44px 54px}
.full-photo{max-height:500px}
.details{gap:10px;margin-top:10px}
.details img{height:205px}
.depot{gap:34px}
.depot-images img{height:250px}
.depot-images img:first-child{height:320px}
.final{padding:52px 54px}
.final .quote{margin:18px auto;font-size:31px}
.signature{margin-top:18px}
.atelier-details{margin-top:12px;gap:10px}
.atelier-details img{height:240px}
@media(max-width:800px){
 .hero-copy,.section,.year,.band,.final{padding:32px 20px}
 .gallery3{margin-top:12px}
 .section:first-of-type .gallery3 img{height:180px}
 .timeline{margin-top:14px}
 .atelier-details img{height:220px}
}


/* V17 — photo d’ouverture moins haute */
@media (min-width:801px){
  .hero{align-items:center;}
  .hero > img{height:390px;align-self:center;}
}
@media (max-width:800px){
  .hero > img{height:340px;max-height:none;}
}


/* V18 : photo d'ouverture entière, plus petite, sans recadrage */
.hero > img{
  width:100%;
  height:auto !important;
  max-height:430px !important;
  object-fit:contain !important;
  object-position:center center !important;
  align-self:center;
}
@media(max-width:760px){
  .hero > img{height:auto !important;max-height:none !important;object-fit:contain !important;}
}

/* ==========================================================
   CORRECTIF PRESTASHOP / LEOTHEME — V18
   À conserver APRES les règles V18 ci-dessus.
   Le thème applique des styles génériques à .page-cms, h1/h2/p,
   .hero, .section, img, etc. On reprend donc explicitement la main.
   ========================================================== */

.page-cms .tc-histoire-v18{
  --green:#5f7564;
  --green-dark:#31483a;
  --cream:#f7f3eb;
  --beige:#eee7da;
  --ink:#30332f;
  --muted:#6d706b;
  --white:#fff;
  --line:#ddd5c7;
  width:100% !important;
  max-width:none !important;
  margin:16px 0 !important;
  padding:0 !important;
  background:#fff !important;
  color:var(--ink) !important;
  font-family:Arial,Helvetica,sans-serif !important;
  font-size:16px !important;
  line-height:1.55 !important;
  box-shadow:0 8px 36px #00000012 !important;
}

.page-cms .tc-histoire-v18 *{box-sizing:border-box}

.page-cms .tc-histoire-v18 h1,
.page-cms .tc-histoire-v18 h2,
.page-cms .tc-histoire-v18 h3{
  font-family:Georgia,"Times New Roman",serif !important;
  color:var(--green-dark) !important;
  font-weight:500 !important;
  line-height:1.15 !important;
  text-transform:none !important;
  letter-spacing:normal !important;
}

.page-cms .tc-histoire-v18 h1{
  font-size:clamp(40px,5vw,72px) !important;
  margin:0 0 14px !important;
}
.page-cms .tc-histoire-v18 h2{
  font-size:clamp(29px,3vw,43px) !important;
  margin:0 0 14px !important;
}
.page-cms .tc-histoire-v18 h3{font-size:25px !important}

.page-cms .tc-histoire-v18 p{
  margin:0 0 11px !important;
  font-size:16px !important;
  line-height:1.55 !important;
  color:var(--ink) !important;
}

.page-cms .tc-histoire-v18 .hero{
  display:grid !important;
  grid-template-columns:1fr 1.05fr !important;
  min-height:470px !important;
  background:var(--cream) !important;
  padding:0 !important;
  margin:0 !important;
  align-items:stretch !important;
}
.page-cms .tc-histoire-v18 .hero-copy{
  padding:46px 52px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
}
.page-cms .tc-histoire-v18 .eyebrow{
  text-transform:uppercase !important;
  letter-spacing:.18em !important;
  font-size:12px !important;
  line-height:1.4 !important;
  color:var(--green) !important;
  font-weight:700 !important;
  margin:0 0 10px !important;
}
.page-cms .tc-histoire-v18 .lead{
  font-size:19px !important;
  line-height:1.55 !important;
  max-width:570px !important;
}
.page-cms .tc-histoire-v18 .hero > img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-height:430px !important;
  object-fit:contain !important;
  object-position:center center !important;
  align-self:center !important;
  margin:0 !important;
}

.page-cms .tc-histoire-v18 .section{
  display:block !important;
  padding:44px 54px !important;
  margin:0 !important;
  border-top:1px solid #eee !important;
  background:#fff !important;
}
.page-cms .tc-histoire-v18 .grid2{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:34px !important;
  align-items:center !important;
}
.page-cms .tc-histoire-v18 .grid2.reverse .visual{order:-1 !important}
.page-cms .tc-histoire-v18 .visual img{
  width:100% !important;
  height:auto !important;
  display:block !important;
  border-radius:3px !important;
  margin:0 !important;
}
.page-cms .tc-histoire-v18 .caption,
.page-cms .tc-histoire-v18 figcaption{
  font-size:12px !important;
  line-height:1.35 !important;
  color:var(--muted) !important;
}
.page-cms .tc-histoire-v18 figure{margin:0 !important}

.page-cms .tc-histoire-v18 .gallery3{
  display:grid !important;
  grid-template-columns:repeat(3,1fr) !important;
  gap:10px !important;
  margin-top:16px !important;
}
.page-cms .tc-histoire-v18 .gallery3 img{
  width:100% !important;
  aspect-ratio:1.28 !important;
  object-fit:cover !important;
  display:block !important;
  margin:0 !important;
}
.page-cms .tc-histoire-v18 .section:first-of-type .gallery3 img{
  height:220px !important;
  aspect-ratio:auto !important;
}

.page-cms .tc-histoire-v18 .year{
  display:block !important;
  background:var(--cream) !important;
  padding:44px 54px !important;
  margin:0 !important;
  border-top:1px solid var(--line) !important;
  border-bottom:1px solid var(--line) !important;
}
.page-cms .tc-histoire-v18 .year-grid{
  display:grid !important;
  grid-template-columns:220px 1fr !important;
  gap:32px !important;
}
.page-cms .tc-histoire-v18 .year-number{
  font-family:Georgia,"Times New Roman",serif !important;
  font-size:72px !important;
  line-height:.9 !important;
  color:var(--green) !important;
}
.page-cms .tc-histoire-v18 .name-lines{
  font-size:19px !important;
  line-height:1.45 !important;
  margin:13px 0 !important;
  padding-left:18px !important;
  border-left:3px solid var(--green) !important;
}
.page-cms .tc-histoire-v18 .quote{
  font-family:Georgia,"Times New Roman",serif !important;
  font-size:26px !important;
  line-height:1.4 !important;
  color:var(--green-dark) !important;
  margin:18px 0 !important;
  padding:16px 22px !important;
  background:var(--cream) !important;
  border-left:4px solid var(--green) !important;
}

.page-cms .tc-histoire-v18 .timeline{
  display:grid !important;
  grid-template-columns:repeat(5,1fr) !important;
  gap:8px !important;
  margin-top:20px !important;
}
.page-cms .tc-histoire-v18 .timeline img{
  width:100% !important;
  aspect-ratio:1 !important;
  object-fit:cover !important;
  display:block !important;
  margin:0 !important;
}
.page-cms .tc-histoire-v18 .timeline figcaption{
  text-align:center !important;
  padding:5px 3px !important;
}

.page-cms .tc-histoire-v18 .band{
  display:block !important;
  padding:44px 54px !important;
  margin:0 !important;
  background:var(--cream) !important;
}
.page-cms .tc-histoire-v18 .full-photo{
  width:100% !important;
  max-height:500px !important;
  object-fit:cover !important;
  display:block !important;
  margin:0 !important;
}
.page-cms .tc-histoire-v18 .details,
.page-cms .tc-histoire-v18 .atelier-details{
  display:grid !important;
  grid-template-columns:repeat(3,1fr) !important;
  gap:10px !important;
  margin-top:12px !important;
}
.page-cms .tc-histoire-v18 .details img,
.page-cms .tc-histoire-v18 .atelier-details img{
  display:block !important;
  width:100% !important;
  height:240px !important;
  object-fit:cover !important;
  border-radius:14px !important;
  margin:0 !important;
}
.page-cms .tc-histoire-v18 .atelier-selection figcaption{
  margin-top:7px !important;
  text-align:center !important;
}

.page-cms .tc-histoire-v18 .depot{
  display:grid !important;
  grid-template-columns:.85fr 1.15fr !important;
  gap:34px !important;
  align-items:center !important;
}
.page-cms .tc-histoire-v18 .depot-images{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
}
.page-cms .tc-histoire-v18 .depot-images img{
  display:block !important;
  width:100% !important;
  height:250px !important;
  object-fit:cover !important;
  margin:0 !important;
}
.page-cms .tc-histoire-v18 .depot-images img:first-child{
  grid-column:1/-1 !important;
  height:320px !important;
}

.page-cms .tc-histoire-v18 .final{
  display:block !important;
  padding:52px 54px !important;
  margin:0 !important;
  text-align:center !important;
  background:#f3f5f0 !important;
}
.page-cms .tc-histoire-v18 .final .quote{
  max-width:760px !important;
  margin:18px auto !important;
  font-size:31px !important;
  background:#fff !important;
}
.page-cms .tc-histoire-v18 .signature{
  font-family:Georgia,"Times New Roman",serif !important;
  font-style:italic !important;
  font-size:30px !important;
  color:var(--green) !important;
  margin-top:18px !important;
}

@media(max-width:800px){
  .page-cms .tc-histoire-v18{margin:0 !important}
  .page-cms .tc-histoire-v18 .hero,
  .page-cms .tc-histoire-v18 .grid2,
  .page-cms .tc-histoire-v18 .year-grid,
  .page-cms .tc-histoire-v18 .depot{
    grid-template-columns:1fr !important;
  }
  .page-cms .tc-histoire-v18 .hero{min-height:0 !important}
  .page-cms .tc-histoire-v18 .hero-copy,
  .page-cms .tc-histoire-v18 .section,
  .page-cms .tc-histoire-v18 .year,
  .page-cms .tc-histoire-v18 .band,
  .page-cms .tc-histoire-v18 .final{padding:32px 20px !important}
  .page-cms .tc-histoire-v18 .hero > img{max-height:none !important}
  .page-cms .tc-histoire-v18 .grid2.reverse .visual{order:0 !important}
  .page-cms .tc-histoire-v18 .gallery3{grid-template-columns:1fr 1fr !important}
  .page-cms .tc-histoire-v18 .timeline{grid-template-columns:1fr 1fr !important}
  .page-cms .tc-histoire-v18 .timeline figure:last-child{grid-column:1/-1 !important}
  .page-cms .tc-histoire-v18 .details,
  .page-cms .tc-histoire-v18 .atelier-details{grid-template-columns:1fr !important}
  .page-cms .tc-histoire-v18 .details img,
  .page-cms .tc-histoire-v18 .atelier-details img,
  .page-cms .tc-histoire-v18 .depot-images img,
  .page-cms .tc-histoire-v18 .depot-images img:first-child{height:auto !important}
  .page-cms .tc-histoire-v18 .year-number{font-size:65px !important}
}
