@charset "UTF-8";

/**** VARIABLES ****/
:root{--vin:#841E47;--vin-stripe:rgba(115,0,46,.68);--dark:#43001B;--orange:#FF7300;--red:#F10600;--creme:#F2DBBF;--creme-light:#FFEFDC;--creme-dark:#F3D2AC;--grain:#ECBA88;--gutter:16px;--font:"gotham","Gotham HTF","Gotham",sans-serif;--font-narrow:"gotham-narrow","Gotham Narrow","gotham",sans-serif;--font-serif:"corsario-variable",Georgia,"Times New Roman",serif;}

html,body{margin:0;padding:0;font-family:var(--font);font-size:16px;font-weight:400;color:var(--creme);background:var(--vin);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}
body{overflow-x:hidden;}

::selection{background:var(--orange);color:var(--dark);}

/**** STYLES DE TEXTE (4 seulement : les réutiliser pour toute nouvelle section) ****/
.t-display{font-family:var(--font);font-weight:500;line-height:.75;text-transform:uppercase;} /* grands mots orange (taille propre à chaque bloc) */
.t-body{font-family:var(--font-serif);font-weight:300;font-variation-settings:"opsz" 48;line-height:1.4;} /* paragraphe oversize (23 → 30 → 38px) */
.t-ui{font-family:var(--font-narrow);font-weight:500;font-size:14px;line-height:1.2;} /* textes d'interface, liens, boutons (le CTA « Me prévenir » et le sous-titre de l'intro passent en 16px) */
.t-label{font-family:var(--font-narrow);font-weight:500;font-size:12px;line-height:1.2;letter-spacing:.12em;text-transform:uppercase;} /* petites étiquettes en capitales */

/**** GLOBAL ****/
img{max-width:100%;}
a{color:inherit;text-decoration:none;}
a:hover{color:inherit;}
ul{list-style:none;margin:0;padding:0;}
.bg-stripes{--stripe:24px;--stripe-bg:var(--vin);--stripe-color:var(--vin-stripe);background-color:var(--stripe-bg);background-image:repeating-linear-gradient(90deg,var(--stripe-color) 0 var(--stripe),transparent var(--stripe) calc(var(--stripe)*2));}


/**** HEADER ****/
#header{position:fixed;top:20px;left:0;right:0;z-index:1030;display:flex;align-items:center;justify-content:space-between;padding:0 var(--gutter);color:var(--creme);transition:color .35s ease,transform .35s ease;pointer-events:none;}
#header > *{pointer-events:auto;}
#header.header-light{color:var(--vin);}
/* hors hero (mobile/tablette) : bandeau de fond aux couleurs de la section, masqué quand on descend, réaffiché quand on remonte */
#header::before{content:"";position:absolute;left:0;right:0;top:-20px;bottom:-14px;z-index:-1;background:var(--vin);opacity:0;transition:opacity .35s ease,background-color .35s ease;}
#header.header-light::before{background:var(--creme);}
#header.is-solid::before{opacity:1;box-shadow:0 6px 20px -12px rgba(67,0,27,.6);}
#header.is-hidden{transform:translateY(calc(-100% - 40px));}
.header-logo{display:block;width:168px;line-height:0;color:inherit;}
.header-logo svg{width:100%;height:auto;display:block;}
.header-logo:hover{color:inherit;opacity:.85;}

/* sélecteur de langue segmenté : contour fin, langue active remplie (couleurs inversées selon le thème du header) */
.lang-switch{position:relative;display:inline-flex;padding:3px;border-radius:999px;}
.lang-switch::before{content:"";position:absolute;inset:0;border:1px solid currentColor;border-radius:inherit;opacity:.35;pointer-events:none;}
.lang-switch a{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:26px;padding:0 10px;border-radius:999px;color:inherit;transition:background-color .2s ease,color .2s ease;}
.lang-switch a:hover{background:rgba(242,219,191,.12);color:inherit;}
.lang-switch a[aria-current]{background:var(--creme);color:var(--vin);}
#header.header-light .lang-switch a:hover{background:rgba(132,30,71,.1);}
#header.header-light .lang-switch a[aria-current]{background:var(--vin);color:var(--creme);}


/**** HERO ****/
.hero{position:relative;height:100vh;height:100svh;min-height:560px;overflow:hidden;}
.hero::before,.hero::after{content:"";position:absolute;left:0;right:0;z-index:1;pointer-events:none;}
.hero::before{top:0;height:130px;background:linear-gradient(to bottom,rgba(67,0,27,.6),rgba(67,0,27,0));}
.hero::after{bottom:0;height:240px;background:linear-gradient(to top,rgba(67,0,27,.85) 35%,rgba(67,0,27,0));}

/* Mots : colonne façon affiche (le <ul> sert de source, le JS construit .hw-board) */
.hero-words{--words-size:clamp(2.75rem,13.2vw,7.5rem);position:absolute;inset:0;overflow:hidden;font-size:var(--words-size);text-align:center;color:var(--orange);white-space:nowrap;}
.hero-words-list li{display:block;}
.hero-words.is-board .hero-words-list{display:none;}
.hw-board{position:absolute;left:0;right:0;}
.hw-line{height:.75em;}
.hw-word{display:block;}

/* Polaroids */
/* mobile : cartes calées en bas, juste au-dessus de la barre contact (adresse seule, réseaux masqués : remettre 62px à la place de 17px quand ils reviendront), pour laisser voir les mots */
.polaroids{--pol-w:clamp(180px,29vw,270px);z-index:2;position:absolute;left:50%;bottom:calc(16px + 64px + 20px + 17px + 28px);width:var(--pol-w);aspect-ratio:269.5/346.5;transform:translateX(-50%);}
.polaroid{position:absolute;inset:0;padding:5.94% 5.94% 17.81%;background:var(--creme-light);box-shadow:0 0 20px -8px var(--vin);visibility:hidden;transform:translate(var(--x,0),var(--y,0)) rotate(var(--r,0deg));}
.polaroid img{position:relative;z-index:1;display:block;width:100%;height:100%;object-fit:cover;} /* au-dessus du grain */
.polaroid::after{content:"";position:absolute;inset:0;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .925 0 0 0 0 .729 0 0 0 0 .533 24 0 0 0 -12.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");background-size:160px 160px;mix-blend-mode:multiply;opacity:.6;} /* grain du cadre */
.polaroid.is-visible{visibility:visible;}

/* Contact bar */
.hero-contact{position:absolute;left:var(--gutter);right:var(--gutter);bottom:calc(16px + 64px + 20px);z-index:2;display:flex;flex-direction:column;align-items:center;gap:12px;}
.hero-social{display:flex;gap:11px;}
.hero-social a{display:block;width:32px;height:32px;border-radius:50%;transition:transform .2s ease;}
.hero-social a:hover{transform:translateY(-2px);}
.hero-social img{display:block;width:32px;height:32px;}
.hero-address{display:inline-flex;align-items:flex-start;gap:4px;color:var(--creme);}
.hero-address img{width:12px;height:12px;margin-top:-1px;transition:transform .2s ease;}
.hero-address:hover{color:var(--creme-light);}
.hero-address:hover img{transform:translate(2px,-2px);}


/**** PHOTOS PLEINE LARGEUR ****/
.photo{position:relative;margin:0;aspect-ratio:4/3;overflow:hidden;background:var(--dark);}
.photo img{position:absolute;left:0;top:-18%;display:block;width:100%;height:136%;object-fit:cover;will-change:transform;}


/**** INTRO : BISTROT GOURMAND VUE MER ****/
.intro{--stripe-bg:var(--creme);--stripe-color:var(--creme-dark);position:relative;display:flex;flex-direction:column;align-items:center;gap:40px;padding:72px var(--gutter) 96px;text-align:center;}
.intro-head{display:flex;flex-direction:column;align-items:center;gap:24px;}
.intro-title{margin:0;font-size:clamp(2.75rem,14vw,8.8125rem);color:var(--orange);}
.intro-title span{display:block;white-space:nowrap;}
.intro-title .accent{color:var(--vin);} /* mot mis en avant */
.intro-subtitle{margin:0;font-size:16px;color:var(--vin);} /* même taille que le CTA « Me prévenir » */
.intro-body{position:relative;z-index:1;max-width:860px;padding:0 16px;font-size:23px;color:var(--dark);}
.intro-body p{margin:0;}
.br-desktop{display:none;} /* retour à la ligne forcé, desktop uniquement */
.intro-body p + p{margin-top:1.42em;}
.js-words.is-armed .w{opacity:.2;transition:opacity .35s ease;}
.js-words.is-armed .w.is-on{opacity:1;}
.intro-toast{width:150px;margin:-8px 0;pointer-events:none;}
.intro-toast svg,.intro-food img{display:block;width:100%;height:auto;}
.pour{overflow:visible;}
.intro-food{display:none;}


/**** MENTIONS LÉGALES (mentions-legales.php) ****/
.legal{--stripe-bg:var(--creme);--stripe-color:var(--creme-dark);display:flex;flex-direction:column;align-items:center;gap:48px;padding:128px var(--gutter) 96px;color:var(--dark);}
.legal-title{margin:0;font-size:clamp(2.75rem,14vw,7.5rem);text-align:center;color:var(--orange);}
.legal-title span{display:block;white-space:nowrap;}
.legal-title .accent{color:var(--vin);}
.legal-body{width:100%;max-width:720px;padding:32px 24px;border-radius:24px;background:var(--creme-light);font-size:16px;line-height:1.5;}
.legal-body h2{margin:36px 0 12px;color:var(--vin);}
.legal-body h2:first-child{margin-top:0;}
.legal-body p{margin:0 0 12px;}
.legal-body a{color:var(--vin);text-decoration:underline;text-underline-offset:3px;}
.legal-body a:hover{color:var(--orange);}


/**** FOOTER ****/
#footer{display:flex;flex-direction:column;align-items:center;gap:32px;padding:56px var(--gutter) calc(16px + 64px + 40px);background:var(--dark);color:var(--creme);text-align:center;}
.footer-brand{display:flex;flex-direction:column;align-items:center;gap:28px;}
.footer-logo{display:block;width:159px;line-height:0;transition:opacity .2s ease;}
.footer-logo img{display:block;width:100%;height:auto;}
.footer-logo:hover{opacity:.85;}
.footer-social,.footer-legal{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 20px;}
.footer-legal{gap:10px 24px;width:100%;padding-top:24px;border-top:1px solid rgba(242,219,191,.18);}
.footer-legal a{opacity:.75;}
#footer a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;transition:color .2s ease,opacity .2s ease,text-underline-offset .2s ease;}
#footer a:hover{color:var(--creme-light);opacity:1;text-underline-offset:5px;}
#footer .footer-logo{text-decoration:none;}


/**** ANNONCE D'OUVERTURE (fixe) ****/
.opening{position:fixed;left:50%;bottom:16px;z-index:1020;transform:translateX(-50%);width:calc(100% - var(--gutter)*2);max-width:470px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 6px 6px 20px;border-radius:50px;background:var(--dark);transition:background-color .35s ease;}
.opening.is-vin{background:var(--vin);}
/* 2 niveaux : petite étiquette (avec pastille orange qui pulse) + date mise en avant */
.opening-text{display:flex;flex-direction:column;gap:4px;margin:0;color:var(--creme);}
.opening-label{display:inline-flex;align-items:center;gap:7px;color:rgba(242,219,191,.6);} /* « Ouverture » plus pâle que la date */
.opening-label::before{content:"";flex-shrink:0;width:7px;height:7px;border-radius:50%;background:var(--red);animation:openingPulse 2s ease-out infinite;}
.opening-date{padding-left:14px;white-space:nowrap;} /* même style que l'étiquette, aligné sous le texte (pastille + écart) */
@keyframes openingPulse{0%{box-shadow:0 0 0 0 rgba(241,6,0,.7);}70%{box-shadow:0 0 0 7px rgba(241,6,0,0);}100%{box-shadow:0 0 0 0 rgba(241,6,0,0);}}
/* bouton façon UI : icône seule (sans pastille), padding équilibré */
.opening-btn{flex-shrink:0;display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 18px 0 15px;border:0;border-radius:999px;background:var(--creme-light);font-size:16px;line-height:1;color:var(--vin);white-space:nowrap;transition:background-color .2s ease,transform .15s ease;}
.opening-btn svg{flex-shrink:0;width:22px;height:22px;transition:transform .25s ease;}
.opening-btn:hover{background:#fff;color:var(--vin);}
.opening-btn:hover svg{transform:rotate(-10deg);}
.opening-btn:active{transform:scale(.97);}


/**** ME PRÉVENIR : formulaire e-mail (<dialog>) ****/
/* mobile : panneau qui monte du bas ; tablette/desktop : fenêtre centrée */
html.is-locked{overflow:hidden;}
.notify{position:fixed;top:auto;right:0;bottom:0;left:0;width:100%;max-width:none;max-height:calc(100dvh - 24px);margin:0;padding:32px 20px calc(24px + env(safe-area-inset-bottom));border:0;border-radius:0;--stripe-bg:var(--creme);--stripe-color:var(--creme-dark);color:var(--dark);overflow:auto;box-shadow:0 -10px 40px -10px rgba(67,0,27,.4);}
.notify[open]{animation:notifyUp .4s cubic-bezier(.2,.8,.2,1);}
.notify::backdrop{background:rgba(67,0,27,.6);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);}
.notify::before{content:"";position:absolute;top:10px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:4px;background:rgba(132,30,71,.25);} /* poignée */
@keyframes notifyUp{from{transform:translateY(100%);}to{transform:none;}}
@keyframes notifyIn{from{opacity:0;transform:translateY(16px) scale(.98);}to{opacity:1;transform:none;}}
.notify-close{position:absolute;top:12px;right:12px;display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--vin);transition:background-color .2s ease;}
.notify-close:hover{background:rgba(132,30,71,.08);}
.notify-step{text-align:center;}
.notify-kicker{display:inline-flex;align-items:center;gap:7px;margin:0 0 16px;color:var(--vin);}
.notify-kicker::before{content:"";flex-shrink:0;width:7px;height:7px;border-radius:50%;background:var(--red);animation:openingPulse 2s ease-out infinite;}
.notify-title{margin:0 0 20px;font-size:min(calc((100vw - 40px) / 8.4),2.875rem);color:var(--orange);} /* 2 lignes pleine largeur */
.notify-title span{display:block;white-space:nowrap;}
.notify-title .accent{color:var(--vin);}
.notify-text{margin:0 0 22px;font-size:16px;line-height:1.35;color:var(--dark);}
.notify-form{display:flex;flex-direction:column;gap:10px;margin:0;}
.notify-form input[type="email"]{width:100%;height:52px;padding:0 20px;border:1px solid rgba(132,30,71,.3);border-radius:999px;background:var(--creme-light);color:var(--dark);font-size:16px;transition:border-color .2s ease,box-shadow .2s ease;}
.notify-form input[type="email"]::placeholder{color:rgba(67,0,27,.4);}
.notify-form input[type="email"]:focus{outline:0;border-color:var(--vin);box-shadow:0 0 0 3px rgba(255,115,0,.35);}
.notify-form input[aria-invalid="true"]{border-color:var(--red);}
.notify-submit{height:52px;padding:0 24px;border:0;border-radius:999px;background:var(--vin);color:var(--creme-light);font-size:16px;line-height:1;transition:background-color .2s ease,transform .15s ease,opacity .2s ease;}
.notify-submit:hover{background:var(--dark);}
.notify-submit:active{transform:scale(.98);}
.notify-submit[disabled]{opacity:.6;pointer-events:none;}
.notify-error{width:100%;margin:2px 0 0;color:var(--red);}
.notify-error:empty{display:none;}
.notify-legal{margin:16px 0 0;color:rgba(67,0,27,.65);}
.notify-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;}
.notify-done .notify-text{margin-bottom:8px;}


/**** ACCESSIBILITE ****/
a:focus-visible,button:focus-visible{outline:2px solid var(--orange);outline-offset:3px;border-radius:4px;}
@media (prefers-reduced-motion:reduce){.opening-label::before,.notify-kicker::before,.notify[open]{animation:none;}.opening,#header,#header::before,.footer-logo,.lang-switch a,.opening-btn,.opening-btn svg,.hero-social a,#footer a{transition:none;}}


/**** RESPONSIVE (mobile-first) ****/
@media (min-width:576px){
	.hero-contact{flex-direction:row;justify-content:space-between;align-items:center;}
	.hero-address{margin-left:auto;} /* reste à droite, avec ou sans réseaux */
	.notify-form{flex-direction:row;flex-wrap:wrap;}
	.notify-form input[type="email"]{flex:1 1 220px;width:auto;}
	.opening-btn{padding:0 20px 0 16px;}
}
@media (min-width:768px){
	:root{--gutter:32px;}
	#header{top:28px;}
	.header-logo{width:180px;}
	.bg-stripes{--stripe:32px;}
	.polaroids{top:45%;bottom:auto;transform:translate(-50%,-50%);}
	.hero-contact{bottom:calc(35px + 57px + 24px);}
	.photo{aspect-ratio:16/9;}
	.intro{gap:56px;padding-top:88px;padding-bottom:120px;}
	.intro-head{gap:32px;}
	.intro-body{max-width:640px;padding:0;font-size:30px;}
	#footer{padding-bottom:calc(35px + 57px + 40px);}
	.opening{bottom:35px;padding-left:24px;}
	.opening-btn{height:46px;}
	.notify{top:0;right:0;bottom:0;left:0;width:calc(100% - 64px);max-width:460px;height:fit-content;max-height:calc(100dvh - 64px);margin:auto;padding:44px 40px 36px;box-shadow:0 30px 80px -20px rgba(67,0,27,.6);}
	.notify[open]{animation-name:notifyIn;}
	.notify::before{display:none;}
	.opening-text{flex-direction:row;align-items:center;gap:.45em;} /* tablette/desktop : tout sur une ligne */
	.opening-date{padding-left:0;}
}
@media (min-width:1200px){
	:root{--gutter:64px;}
	#header{top:33px;}
	.header-logo{width:217px;}
	.bg-stripes{--stripe:41.4px;}
	.polaroids{top:49.5%;}
	.hero-contact{bottom:48px;}
	.opening{width:auto;}
	.photo-terrace{aspect-ratio:1512/597.5;}
	.photo-interior{aspect-ratio:1512/668;}
	.intro{gap:64px;padding:92px var(--gutter) 124px;}
	.intro-body{max-width:860px;font-size:38px;}
	.br-desktop{display:inline;}
	.intro-toast{position:absolute;top:335px;bottom:0;left:0;width:calc(50% - 430px);margin:0;} /* colonne à gauche du texte */
	.intro-toast-inner{position:sticky;top:90px;height:442px;display:flex;align-items:flex-end;justify-content:center;}
	.intro-toast svg{width:min(225px,80%);}
	.intro-food{display:block;position:absolute;right:64px;bottom:64px;width:min(200px,calc(50% - 470px));} /* illustration « mets et vins » (Histoires de Bouteille) */
	#header::before{display:none;}
	#header.is-hidden{transform:none;}
	#footer{flex-direction:row;align-items:center;justify-content:space-between;min-height:177px;padding:24px var(--gutter);text-align:left;}
	.footer-brand{align-items:flex-start;gap:8px;}
	.footer-social{justify-content:flex-start;gap:16px;padding:24px 0;}
	.footer-legal{width:auto;padding-top:0;border-top:0;}
	.footer-brand:has(.footer-social) ~ .footer-legal{margin-top:calc(30.5px + 8px);} /* si les réseaux sont affichés : aligné sur leur ligne (corrige le décalage de la maquette) */
	.footer-legal a{opacity:1;}
	.hero::before,.hero::after{display:none;}
}
