:root{
  --wine:#823e34;
  --gold:#c9a23a;
  --bg:#f8f5f2;
  --ink:#2b2b2b;
}

/* RESET & BASE */
*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background-color: var(--bg);
  background-image: url('../img/bg-paper.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color:var(--ink);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

a{
  color:var(--wine);
  text-decoration:none;
  transition:color .18s ease, background-color .18s ease;
}
a:hover{
  text-decoration:none;
  color:#5f271f;
}

/* HEADER / NAVBAR */
header{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(4px);
  border-bottom:1px solid rgba(0,0,0,.04);
  box-shadow:0 6px 18px rgba(0,0,0,.03);
}

.nav{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:20px;
  padding:10px 16px;
}

.nav img{
  height:52px;
  width:auto;
}
.nav .brand{
  font-weight:700;
  font-size:1.4rem;
  color:var(--wine);
  letter-spacing:.06em;
  text-transform:uppercase;
}
.nav ul{
  list-style:none;
  display:flex;
  gap:14px;
  margin:0;
  padding:0;
}
.nav li{
  position:relative;
}
.nav li a{
  display:block;
  padding:8px 12px;
  border-radius:999px;
  font-size:.96rem;
}
.nav li a:hover{
  background:rgba(130,62,52,.08);
}

/* SOUS-MENU (desktop + mobile) */
.nav .menu{
  display:none;
  position:absolute;
  background:white;
  border:1px solid rgba(0,0,0,.06);
  padding:8px;
  border-radius:14px;
  min-width:220px;
  box-shadow:0 14px 35px rgba(0,0,0,.08);
}
.nav .menu a{
  white-space:nowrap;
  border-radius:8px;
}
.nav .menu a:hover{
  background:rgba(130,62,52,.06);
}

/* Sur desktop : hover OU focus-within (clavier) */
.nav .dropdown:hover .menu,
.nav .dropdown:focus-within .menu{
  display:block;
}

/* Ouverture quand le JS ajoute .is-open (mobile notamment) */
.nav .dropdown.is-open .menu{
  display:block;
}

/* LAYOUT GLOBAL */
main{
  max-width:1100px;
  margin:32px auto;
  padding:0 16px 64px;
}

/* TITRES GLOBAUX */
h1,h2,h3{
  color:#3a2521;
}
h1{
  letter-spacing:.01em;
}
h2{
  margin-top:32px;
  margin-bottom:12px;
}

/* HERO */
.hero{
  display:grid;
  grid-template-columns:1.25fr 1fr;
  gap:28px;
  align-items:center;
  background:rgba(255,255,255,.97);
  border-radius:22px;
  padding:28px 28px 26px;
  box-shadow:0 18px 45px rgba(0,0,0,.06);
}
.hero h1{
  margin:0 0 10px;
  font-size:2.1rem;
  color:var(--wine);
}
.hero p{
  font-size:1.02rem;
  margin:.35rem 0;
}

/* GRILLES / CARTES */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
}

.card{
  background:rgba(255,255,255,.98);
  border-radius:18px;
  padding:18px 18px 16px;
  box-shadow:0 12px 30px rgba(0,0,0,.05);
  border:1px solid rgba(0,0,0,.04);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 40px rgba(0,0,0,.08);
  border-color:rgba(130,62,52,.12);
}

.card h3{
  margin:.3rem 0 .4rem;
}
.meta{
  font-size:.9rem;
  color:#636363;
}

/* Badges (accords mets-vins) */
.badge{
  display:inline-block;
  padding:.18rem .6rem;
  border-radius:999px;
  border:1px solid #ddd;
  font-size:.8rem;
  margin:0 .25rem .25rem 0;
  background:#faf6f1;
}

/* BOUTONS */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 14px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background:white;
  cursor:pointer;
  font-size:.95rem;
  transition:background .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.btn:hover{
  box-shadow:0 8px 20px rgba(0,0,0,.06);
  transform:translateY(-1px);
}
.btn.primary{
  background:var(--wine);
  color:white;
  border-color:transparent;
}
.btn.primary:hover{
  background:#6c332a;
}
.btn.print{
  float:right;
}
.btn.small{
  padding:.4rem .7rem;
  font-size:.9rem;
}
.btn.danger{
  background:#7a3b35;
  color:#fff;
}

/* FOOTER */
footer{
  border-top:1px solid rgba(0,0,0,.05);
  padding:24px 16px;
  color:#666;
  font-size:.9rem;
}

/* DÉTAILS VISUELS */
.kicker{
  color:#896e2f;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:.78rem;
}

figure{margin:0}
img.resp{
  width:100%;
  height:180px;       /* vignettes plus raisonnables */
  object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.06);
}

/* RECHERCHE / NOTICES */
.search{
  display:flex;
  gap:8px;
  margin:8px 0 16px;
}
.search input{
  flex:1;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid #ccc;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.search select{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid #ccc;
}
.search input:focus,
.search select:focus{
  border-color:var(--wine);
  box-shadow:0 0 0 3px rgba(130,62,52,.15);
}

.notice{
  background:#fff7e6;
  border:1px dashed #f0c36d;
  padding:12px 14px;
  border-radius:14px;
}

/* ===============================
   FICHE VIN (.sheet)
   =============================== */
.sheet{
  background:rgba(255,255,255,.98);
  border-radius:22px;
  padding:26px 24px 24px;
  box-shadow:0 18px 45px rgba(0,0,0,.06);
  border:1px solid rgba(0,0,0,.04);
  overflow:hidden;
}

.sheet-header{
  display:flex;
  align-items:center;
  gap:16px;
  border-bottom:3px solid var(--wine);
  padding-bottom:12px;
  margin-bottom:18px;
}
.sheet-header img{
  height:54px;
  flex-shrink:0;
}
.sheet-title{
  line-height:1.25;
}
.sheet-title h1{
  margin:0;
  font-size:2rem;
  color:#1f1715;
}
.sheet-title .subtitle{
  color:#555;
  margin-top:4px;
  font-size:.96rem;
}

/* grille principale fiche vin */
.sheet-grid{
  display:grid;
  grid-template-columns:2fr 1fr; /* texte + colonne bouteille */
  gap:24px;
}

.sheet .row{
  display:grid;
  grid-template-columns:28px 1fr;
  gap:12px;
  align-items:start;
  margin:10px 0;
}
.sheet .row img{
  width:24px;
  height:24px;
  opacity:.9;
}
.sheet .row p{
  margin:0;
}
.sheet .divider{
  border-left:3px solid #222;
  height:100%;
  opacity:.1;
  margin:6px 0;
}

/* Colonne bouteille plus raisonnable */
.sheet .bottle{
  align-self:flex-start;
  text-align:center;
}
.sheet .bottle img{
  width:auto;
  max-width:190px;
  max-height:360px;
  object-fit:contain;
  display:inline-block;
}

.sheet .kicker{
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#666;
  font-size:.85rem;
}
.sheet .section-title{
  font-weight:700;
  margin-top:14px;
}

/* ========= Blocs SEO (fiche & catalogue) ========= */
.seo-wine,
.seo-home{
  margin-top:24px;
  padding:16px 18px;
  border-radius:16px;
  background:rgba(253,248,242,.96);
  border:1px solid rgba(0,0,0,.04);
  font-size:.95rem;
  line-height:1.7;
  color:#444;
}
.seo-wine h2,
.seo-home h2{
  margin-top:0;
  margin-bottom:8px;
  font-size:1.12rem;
  color:#823e34;
}

/* ========= Contact ========= */
.contact-wrap{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:2rem;
  align-items:start;
}

.contact-left .lead{
  margin:0 0 1rem 0;
  font-size:1.05rem;
  opacity:.9;
}

.contact-right h2{
  margin:0 0 .75rem 0;
  font-size:1.25rem;
}

.contact-list{
  list-style:none;
  padding:0;
  margin:0 0 1rem 0;
}
.contact-list li{
  margin:.5rem 0;
}

.mini-panel{
  border:1px dashed rgba(0,0,0,.15);
  border-radius:14px;
  padding:.85rem 1rem;
  font-size:.95rem;
  opacity:.9;
}

/* Grille générique (formulaires, etc.) */
.row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
}

/* Labels flottants */
.form-field{
  position:relative;
  margin:.75rem 0 1rem;
}
.form-field input,
.form-field textarea{
  width:100%;
  display:block;
  padding:14px 14px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  background:var(--card-bg, #fff);
  outline:none;
  transition:box-shadow .2s, border-color .2s;
}
.form-field input:focus,
.form-field textarea:focus{
  border-color:rgba(130,62,52,.6);
  box-shadow:0 0 0 4px rgba(130,62,52,.08);
}
.form-field label{
  position:absolute;
  left:12px;
  top:12px;
  padding:0 .35rem;
  border-radius:6px;
  line-height:1;
  background:var(--card-bg, #fff);
  transform-origin:left top;
  transition:transform .15s ease, opacity .15s ease, top .15s ease;
  opacity:.7;
  pointer-events:none;
}
.form-field input::placeholder,
.form-field textarea::placeholder{
  color:transparent;
}
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label{
  transform:translateY(-12px) scale(.9);
  top:-6px;
  opacity:.9;
}

/* Commande */
.order-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}
.order-table th,
.order-table td{
  padding:.6rem .5rem;
  border-bottom:1px solid rgba(0,0,0,.08);
  vertical-align:top;
}
.order-table th{
  text-align:left;
  opacity:.8;
}
.order-actions{
  margin-top:.75rem;
  display:flex;
  gap:.5rem;
}

.w100{width:100%;}
.mt6{margin-top:.4rem;}
.mt12{margin-top:.9rem;}

.radio{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  margin-bottom:.35rem;
}

/* ===============================
   RESPONSIVE
   =============================== */

/* HERO uniquement */
@media (max-width:800px){
  .hero{
    grid-template-columns:1fr;
  }
}

/* Fiche vin & layout général (tablettes et petits écrans) */
@media (max-width:900px){
  .sheet-grid{
    grid-template-columns:1fr;
  }
  .sheet-header{
    flex-direction:column;
    text-align:center;
  }
  .sheet-title h1{
    font-size:1.7rem;
  }
  .sheet .divider{
    display:none;
  }
  .sheet .bottle img{
    max-width:180px;
  }
}

/* Mobile général */
@media (max-width:768px){

  /* Fond fixe moins agréable sur mobile */
  body{
    background-attachment:scroll;
  }

  main{
    max-width:100%;
    margin:16px auto 40px;
    padding:0 12px 40px;
  }

  /* NAVBAR mobile */
  .nav{
    flex-wrap:wrap;
    justify-content:center;
    text-align:center;
    gap:8px;
    padding:8px 10px;
  }
  .nav img{
    height:42px;
  }
  .nav .brand{
    font-size1.1rem;
  }
  .nav ul{
    width:100%;
    flex-wrap:wrap;
    justify-content:center;
    gap:6px;
    font-size:.9rem;
  }
  .nav li a{
    padding:6px 10px;
  }

  /* Sous-menu en bloc */
  .nav .menu{
    position:static;
    margin-top:4px;
  }

  /* Sur mobile, on évite le hover capricieux */
  .nav .dropdown:hover .menu{
    display:none;
  }

  /* Ouverture au focus ET via JS (.is-open) */
  .nav .dropdown:focus-within .menu,
  .nav .dropdown.is-open .menu{
    display:block;
  }

  /* Cartes / grilles */
  .grid{
    grid-template-columns:1fr;
  }
  .card{
    padding:14px;
  }
  img.resp{
    height:160px;
  }

  /* Contact / formulaire */
  .contact-wrap{
    grid-template-columns:1fr;
    gap:1.25rem;
  }

  /* Grille générique */
  .row{
    grid-template-columns:1fr;
  }

  /* Correction spécifique pour les lignes de fiche vin */
  .sheet .row{
    grid-template-columns:24px 1fr;
  }

  /* 🚫 PAS DE PHOTO DE BOUTEILLE EN VERSION MOBILE */
  .sheet .bottle{
    display:none !important;
  }

  /* ===== Boutons fiche vin : on enlève les floats et on centre ===== */

  .sheet .btn.print{
    float:none;
    display:block;
    margin:0 auto 8px;
  }

  .sheet form[action*="commande"]{
    float:none !important;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:6px;
    margin:0 0 10px;
  }

  .sheet a.btn{
    float:none !important;
    margin:0 4px 8px;
  }
}

/* Très petits écrans */
@media (max-width:480px){
  .sheet{
    padding:16px;
  }
  .sheet-title h1{
    font-size:1.45rem;
  }
  .sheet-header img{
    height:44px;
  }
}

/* ===============================
   IMPRESSION
   =============================== */
@media print{
  header,
  .btn.print,
  .search,
  footer{
    display:none !important;
  }
  main{
    margin:0;
    padding:0;
  }
  .card{
    page-break-inside:avoid;
    box-shadow:none;
    border:1px solid #aaa;
  }
  .sheet{
    box-shadow:none;
    border:0;
  }
  .sheet-header{
    border-bottom:2px solid #000;
  }
}
.sig-separator{
  margin:40px auto 24px;
  max-width:180px;
  border:0;
  border-top:1px solid rgba(0,0,0,0.15);
}

.signature-block{
  margin-top:16px;
  text-align:right;
}

.signature-label{
  margin:0;
  font-size:0.95rem;
  color:rgba(0,0,0,0.6);
}

.signature-name{
  margin:4px 0 0;
  font-size:2rem;
  font-family:"Great Vibes","Segoe Script","Lucida Handwriting",cursive;
  color:#823e34; /* ton bordeaux DIVIN */
}
.portrait-wrapper {
    text-align: center;
    margin: 20px 0 40px;
}

.portrait {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #823e34;   /* Bordeaux Divin */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.footer {
  background: #f4ece7;
  padding: 40px 0 20px;
  margin-top: 60px;
  border-top: 3px solid #823e34;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 0 20px;
}

.footer-col h3 {
  color: #823e34;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.footer-col ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-col ul li {
  margin: 6px 0;
}

.footer-col ul li a {
  color: #4a3c35;
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: #823e34;
}

.footer-logo {
  max-width: 130px;
  margin-bottom: 8px;
}

.footer-slogan {
  color: #823e34;
  font-weight: 600;
  margin: 0;
}

.social-links li a {
  font-weight: 600;
}

.footer-bottom {
  text-align: center;
  padding: 16px 0 0;
  margin-top: 20px;
  color: #6b564d;
  font-size: 0.9rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col {
    margin-bottom: 20px;
  }
}
/* ===========================
   PAGES LEGALES (mentions / RGPD)
   =========================== */

.page.page-legal {
  padding: 40px 0 60px;
}

.page-legal .page-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 20px;
}

.page-legal h1 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #823e34;
}

.page-legal h2 {
  font-size: 1.25rem;
  margin-top: 24px;
  margin-bottom: 8px;
  color: #823e34;
}

.page-legal p,
.page-legal ul {
  line-height: 1.6;
  color: #3c2f29;
  font-size: 0.98rem;
}

.page-legal ul {
  padding-left: 20px;
}

.legal-intro {
  margin-bottom: 12px;
  font-style: italic;
  color: #5a463d;
}

.legal-update {
  margin-top: 24px;
  font-size: 0.9rem;
  color: #6b564d;
}
/* ============================================
   FOOTER — VERSION MOBILE (< 900px)
   ============================================ */
@media (max-width: 900px) {

  .footer-container {
    display: flex;
    flex-direction: column;     /* 🔥 chaque colonne passe en dessous */
    gap: 32px;                  /* bel espace entre les blocs */
    text-align: center;         /* tout centré */
  }

  .footer-col {
    width: 100%;                /* chaque bloc occupe toute la largeur */
    padding: 0 10px;
  }

  .footer-logo {
    max-width: 140px;           /* logo plus petit pour mobile */
    margin: 0 auto 10px;
  }

  .footer-slogan {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .footer-col ul li {
    margin: 6px 0;
  }

  .footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.15);
    margin-top: 20px;
  }
}
@media (max-width: 900px) {

  .footer-logo {
    width: 60px !important;   /* Taille idéale */
    height: auto !important;
    display: block;
    margin: 0 auto 10px;
  }

}

