/* =========================================================================
   Céramiques Carré — feuille de style principale
   Esthétique : héritage parisien raffiné. Terracotta & crème, sérif élégant.
   Mobile-first, responsive, sans framework.
   ========================================================================= */

:root {
  --terracotta: #9c4a3c;
  --terracotta-deep: #7e3a2f;
  --terracotta-soft: #c06650;
  --cream: #fbf3e3;
  --cream-deep: #f3e7cf;
  --ink: #2b211c;
  --ink-soft: #5b4d44;
  --line: #e3d4b8;
  --gold: #b88a3e;
  --white: #fffdf8;
  --shadow: 0 18px 48px -24px rgba(43, 33, 28, .45);
  --shadow-sm: 0 6px 22px -14px rgba(43, 33, 28, .5);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
  --maxw: 1180px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 18% -10%, rgba(192, 102, 80, .10), transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(184, 138, 62, .08), transparent 38%);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: var(--terracotta); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--terracotta-deep); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); letter-spacing: .5px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
p { margin: 0 0 1.1em; }

.wrap { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: .5rem; z-index: 200;
  background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { left: .8rem; }

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

/* ---------- En-tête / navigation ---------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 243, 227, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }

.brand { display: flex; align-items: center; gap: .8rem; color: var(--ink); }
.brand img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.brand-sub { font-size: .68rem; letter-spacing: 3px; text-transform: uppercase; color: var(--terracotta); margin-top: 3px; }

.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 2rem; }
.primary-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  position: relative; color: var(--ink); font-weight: 600; font-size: .82rem;
  letter-spacing: 1.6px; text-transform: uppercase; padding: .4rem 0;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--terracotta); transition: right .3s var(--ease);
}
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { right: 0; }
.primary-nav a[aria-current="page"] { color: var(--terracotta); }

.nav-aside { display: flex; align-items: center; gap: 1.1rem; }
.lang-switch {
  font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
  border: 1px solid var(--line); padding: .42rem .8rem; border-radius: 100px; color: var(--ink-soft);
}
.lang-switch:hover { border-color: var(--terracotta); color: var(--terracotta); }
.social { display: inline-flex; gap: .5rem; }
.social a { display: inline-flex; color: var(--terracotta); }
.social a:hover { color: var(--terracotta-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line);
  background: var(--white); border-radius: var(--radius); cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }

/* ---------- Pied de page ------------------------------------------------- */
.site-footer { margin-top: 5rem; background: var(--ink); color: #e9ddcf; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.6fr 1fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.site-footer h2 { color: var(--white); font-size: 1.15rem; letter-spacing: 1px; margin-bottom: 1rem; }
.site-footer .brand-name { color: var(--white); font-size: 1.6rem; letter-spacing: 1.5px; text-transform: uppercase; display: block; }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: #cdbfae; margin-top: .4rem; }
.site-footer a { color: #e9ddcf; }
.site-footer a:hover { color: var(--terracotta-soft); }
.addr-list { display: grid; gap: 1.2rem; }
.addr { font-style: normal; font-size: .95rem; line-height: 1.5; color: #cdbfae; }
.addr strong { display: block; color: var(--white); font-weight: 700; margin-bottom: .15rem; }
.addr-tel { display: inline-block; margin-top: .15rem; }
.footer-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.social-footer { margin-top: 1.2rem; }
.social-footer a { color: #cdbfae; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: #b6a795; }
.footer-bottom .wrap { padding: 1.2rem 0; }

/* ---------- Page d'accueil multilingue (splash) -------------------------- */
.splash { min-height: 100vh; display: grid; place-items: center; text-align: center;
  background:
    linear-gradient(rgba(43, 33, 28, .55), rgba(43, 33, 28, .68)),
    url("../../DSC2.jpg") center / cover no-repeat fixed;
  color: var(--white); padding: 3rem 1.2rem;
}
.splash-card { max-width: 640px; animation: rise .9s var(--ease) both; }
.splash img.crest { width: 130px; height: 130px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .5), 0 20px 50px -20px #000; margin: 0 auto 2rem; }
.splash h1 { color: var(--white); font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: .2rem; }
.splash .tagline { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: #f0e6d6; margin-bottom: .3rem; }
.splash .tagline-en { color: #d9cbb8; font-size: 1.15rem; }
.lang-choice { display: flex; gap: 1rem; justify-content: center; margin-top: 2.4rem; flex-wrap: wrap; }
.lang-choice a {
  display: inline-flex; align-items: center; gap: .7rem; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .35); color: var(--white); padding: .85rem 1.6rem;
  border-radius: 100px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: .8rem;
  backdrop-filter: blur(4px); transition: all .25s var(--ease);
}
.lang-choice a:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--white); transform: translateY(-2px); }
.lang-choice img { width: 26px; height: auto; border-radius: 2px; }
.splash-credit { margin-top: 2.5rem; font-size: .78rem; letter-spacing: 1px; color: rgba(255, 255, 255, .6); }

/* ---------- En-tête de page interne ------------------------------------- */
.page-head { text-align: center; padding: 3.5rem 0 1rem; }
.page-head .eyebrow { display: inline-block; font-size: .75rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: .8rem; position: relative; }
.page-head .eyebrow::before, .page-head .eyebrow::after { content: ""; display: inline-block; width: 28px; height: 1px;
  background: var(--gold); vertical-align: middle; margin: 0 .8rem; }
.page-head p.lead { max-width: 60ch; margin: .4rem auto 0; font-size: 1.1rem; color: var(--ink-soft); }

/* ---------- Accueil (home) ---------------------------------------------- */
.home-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding: 3.5rem 0 2rem; }
.home-hero .crest { width: clamp(220px, 30vw, 340px); aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  box-shadow: var(--shadow); border: 6px solid var(--white); margin-inline: auto; animation: rise .8s var(--ease) both; }
.home-hero h1 { margin-bottom: .3rem; }
.home-hero .since { font-family: var(--serif); font-style: italic; color: var(--terracotta); font-size: 1.5rem; margin-bottom: 1.2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem; background: var(--terracotta); color: var(--white);
  padding: .85rem 1.7rem; border-radius: 100px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  font-size: .8rem; box-shadow: var(--shadow-sm); transition: all .25s var(--ease); border: none; cursor: pointer;
}
.btn:hover { background: var(--terracotta-deep); color: var(--white); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--terracotta); border: 1px solid var(--terracotta); box-shadow: none; }
.btn.ghost:hover { background: var(--terracotta); color: var(--white); }
.btn-row { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: .5rem; }

.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 3rem 0; }
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease);
}
.feature:hover { transform: translateY(-4px); }
.feature .num { font-family: var(--serif); font-size: 2.4rem; color: var(--terracotta); line-height: 1; }
.feature h3 { margin: .5rem 0 .3rem; }
.feature p { margin: 0; font-size: .96rem; color: var(--ink-soft); }

/* ---------- Sections texte + images (histoire) -------------------------- */
.section { padding: 1.5rem 0; }
.prose { max-width: 70ch; }
.prose p { color: var(--ink-soft); }
.history-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; padding-top: 1rem; }
.history-figures { display: grid; gap: 1.5rem; position: sticky; top: 100px; }
figure { margin: 0; }
figure img { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; }
figcaption { font-size: .85rem; color: var(--ink-soft); font-style: italic; margin-top: .5rem; line-height: 1.4; }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.5rem 0; }

.history-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem;
  border-top: 1px solid var(--line); padding-top: 1.5rem; }
.history-nav .btn { font-size: .75rem; }
.history-steps { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin: 1.5rem auto 0; padding: 0; list-style: none; }
.history-steps a { font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft);
  padding: .4rem .9rem; border-radius: 100px; border: 1px solid var(--line); }
.history-steps a[aria-current="true"] { background: var(--terracotta); color: var(--white); border-color: var(--terracotta); }

/* ---------- Collections (hub 4 univers) --------------------------------- */
.collection-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; margin: 2rem 0; }
.collection-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); aspect-ratio: 16 / 10; background: var(--cream-deep);
}
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.collection-card:hover img { transform: scale(1.06); }
.collection-card .label {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.4rem 1.2rem;
  background: linear-gradient(transparent, rgba(43, 33, 28, .82)); color: var(--white);
}
.collection-card .label span { display: block; font-family: var(--serif); font-size: 1.7rem; letter-spacing: .5px; }
.collection-card .label em { font-style: normal; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--terracotta-soft); }

/* ---------- Galerie (cuisine / sdb / sols / déco) ----------------------- */
.gallery-hint { text-align: center; color: var(--ink-soft); font-style: italic; margin-bottom: 2rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.8rem; padding-bottom: 1rem; }
.tile-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.tile-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile-photo { display: block; position: relative; aspect-ratio: 1; overflow: hidden; background: var(--cream-deep); }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tile-photo:hover img { transform: scale(1.05); }
.tile-photo::after {
  content: "+"; position: absolute; right: .7rem; bottom: .7rem; width: 34px; height: 34px; display: grid; place-items: center;
  background: rgba(251, 243, 227, .92); color: var(--terracotta); border-radius: 50%; font-size: 1.3rem; line-height: 1;
  box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(6px); transition: all .25s var(--ease);
}
.tile-photo:hover::after { opacity: 1; transform: translateY(0); }
.tile-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.tile-name { font-family: var(--serif); font-size: 1.35rem; line-height: 1.15; }
.tile-name a { color: var(--ink); }
.tile-name a:hover { color: var(--terracotta); }
.tile-suffix { font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--terracotta); font-weight: 700; }
.tile-c1 { font-size: .92rem; color: var(--ink); font-weight: 600; }
.tile-c2 { font-size: .82rem; color: var(--ink-soft); line-height: 1.45; margin-top: .1rem; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: 2.5rem; font-weight: 600; letter-spacing: .5px; }

/* ---------- Contact ------------------------------------------------------ */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; padding-top: 1rem; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 2rem 2.2rem; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .8rem; letter-spacing: .8px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .35rem; }
.field .req { color: var(--terracotta); }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .85rem; font: inherit; font-size: .98rem; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(156, 74, 60, .15); background: var(--white);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--ink-soft); }
.alert { border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1.3rem; font-size: .95rem; display: flex; gap: .6rem; align-items: flex-start; }
.alert svg { flex: none; margin-top: 2px; }
.alert.error { background: #fbe9e6; border: 1px solid #e3a89c; color: #8a2d1c; }
.alert.success { background: #e9f3ea; border: 1px solid #a6cdab; color: #2e6b39; }
.contact-aside h2 { font-size: 1.3rem; }
.contact-aside .addr { color: var(--ink-soft); font-style: normal; margin-bottom: 1.4rem; font-size: .98rem; line-height: 1.5; }
.contact-aside .addr strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-bottom: .15rem; }

/* ---------- Groupe / liens ---------------------------------------------- */
.group-grid { display: grid; gap: 1.4rem; margin: 2rem 0; }
.group-card {
  display: grid; grid-template-columns: 180px 1fr; gap: 1.6rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow-sm);
}
.group-card .logo { display: grid; place-items: center; min-height: 90px; }
.group-card h3 { margin-bottom: .2rem; }
.group-card .role { font-size: .76rem; letter-spacing: 2px; text-transform: uppercase; color: var(--terracotta); margin-bottom: .5rem; }
.group-card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Pages détail (catalogue réhabillé) -------------------------- */
.detail-page { padding-top: 1rem; }
.detail-intro { text-align: center; margin-bottom: 1.5rem; }
.detail-page table { border-collapse: collapse; margin: 1rem auto 2rem; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); max-width: 100%; }
.detail-page td, .detail-page th { padding: .6rem .7rem; vertical-align: top; }
.detail-page img { margin: .4rem auto; border-radius: 3px; box-shadow: var(--shadow-sm); }
.detail-page p { text-align: center; font-size: .9rem; margin: .35rem auto; }
.detail-page h1, .detail-page h2, .detail-page h3 { text-align: center; }
.detail-page h3 { color: var(--terracotta); letter-spacing: 1px; text-transform: uppercase; font-family: var(--sans);
  font-weight: 700; font-size: .9rem; margin: 2rem 0 .5rem; }
/* Neutralise le balisage hérité (<font>, <u>, <i>) des anciennes fiches */
.detail-page font { font-size: inherit !important; font-family: var(--serif) !important; }
.detail-page u { text-decoration: none; }
.detail-page h1 font, .detail-page h2 font { color: var(--ink); }
.detail-page a img { transition: transform .25s var(--ease); }
.detail-page a:hover img { transform: scale(1.04); }
.detail-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.detail-scroll table { margin-inline: auto; }

/* ---------- Animations --------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .7s var(--ease) both; }

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .home-hero, .history-layout, .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .history-figures { position: static; }
  .feature-row { grid-template-columns: 1fr; }
  .collection-grid { grid-template-columns: 1fr; }
  .group-card { grid-template-columns: 1fr; text-align: center; }
  .group-card .logo { margin-inline: auto; }

  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: .5rem 0 1rem; margin: 0; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease); max-height: calc(100vh - 78px); overflow-y: auto;
  }
  body.nav-open .primary-nav { opacity: 1; transform: none; pointer-events: auto; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li { border-top: 1px solid var(--line); }
  .primary-nav ul a { display: block; padding: 1rem 1.4rem; font-size: .9rem; }
  .primary-nav a::after { display: none; }
  .nav-aside { padding: 1rem 1.4rem 0; justify-content: space-between; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .figure-pair { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .form-card, .contact-aside { padding-inline: 0; }
  .form-card { padding: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
