/*
Theme Name: Chalet d'en Ô
Template: twal
Version: 1.0.0
*/

/* Surcharges spécifiques au site uniquement */

:root {
    --tw-font-body: 'Manrope', 'Nunito Sans', system-ui, sans-serif;
    --tw-font-title:  'Cormorant Garamond', Georgia, serif;
	--tw-color-accent : #fff;
	--tw-hero-content-width : 700px;
	--tw-letter-spacing-p : 0.025em;
	
	/*------------------------------------
	 * MENU 
	 * ----------------------------------*/
	  --ch-menu-separator: " ✶ ";
    --ch-menu-bg: #fbf7ef;
    --ch-menu-text: #1f1f1f;
    --ch-menu-muted: #555;
    --ch-menu-border: rgba(0, 0, 0, 0.12);
}

body {
    font-family: var(--tw-font-body);
	font-weight : 300;
}

h1,
h2,
h3 {
    font-family: var(--tw-font-title);
}
.tw-hero__accroche {
	font-weight: 600;
}
h2.tw-section__title {
	font-weight: 500;
	font-size: clamp(2.4rem, 3vw, 3.0rem);
}

body,
p,
li {
    font-family: var(--tw-font-body);
    font-weight: var(--tw-body-font-weight);
    letter-spacing: var(--tw-letter-spacing-p);
}

h1,
h2,
h3,
.tw-section__title {
    font-family: var(--tw-font-title);
    font-weight: 400;
    letter-spacing: 0;
}
/* les titre dans une section texte */
.tw-layout__content h3, .tw-layout__content h2 {
	font-weight: 600;
}


.tw-hero__content
 {
    position: relative;
    z-index: 2;
    width: min(var(--tw-hero-content-width), calc(100% - 2rem));
    padding-block: clamp(4rem, 8vw, 7rem);
    margin-left: max(1.5rem, calc((100vw - var(--tw-hero-container)) / 2));
}

.tw-hero__accroche {
    margin: 0 0 2rem;
    color: #fff;
    font-size: var(--tw-hero-accroche-size);
    line-height: 2.4rem;
    font-weight: 400;
 
}
/* ==========================================================
   PAGE RESEVER — CHALET D'EN Ô
   Rôle : modifie l'apparence de la page réserver
   ========================================================== */

.main-container.reserver .tw-hero,
.main-container.reserver .tw-hero__inner{
	min-height : 420px;
	max-height: 500px;
}
/*
.main-container.reserver .tw-section__header {
	display : none;
}
*/
/* ==========================================================
   MENU RESTAURANT — CHALET D'EN Ô
   Rôle : section menu avec panneau bois, menu HTML, photo plat et PDF
   ========================================================== */
.tw-layout__content p {
    margin: 0 0 1.2rem;
	letter-spacing : var(--tw-letter-spacing-p);
}

/* ----------------------------------------------------------
   1. Section générale
   ---------------------------------------------------------- */

.tw-section--menu {
    --tw-board-max-width: 1200px;
    --tw-board-gap: clamp(2rem, 4vw, 4rem);

    --tw-menu-card-max-width: 760px;
    --tw-menu-dish-max-width: 500px;

    --tw-photo-border: 8px;
    --tw-pin-size: 18px;
    --tw-pin-top: 10px;

    padding-block: clamp(3rem, 6vw, 6rem);
}


/* En-tête plus proche du panneau */
.tw-section--menu .tw-section__header {
    margin-bottom: 0;
}


/* ----------------------------------------------------------
   2. Panneau bois
   ---------------------------------------------------------- */

.tw-section--menu .tw-section__inner {
    max-width: var(--tw-board-max-width);
   
    box-shadow: 0 22px 50px rgba(60, 35, 15, .18);
	
}

.tw-menu-layout {
	padding: 100px 8% 20px 7%;
    background-image: url('/wp-content/uploads/2026/05/bg-planche-bois-rustique-02.jpg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

/* ----------------------------------------------------------
   3. Layout menu HTML + photo
   ---------------------------------------------------------- */

.tw-menu-layout--html {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 38%);
    gap: var(--tw-board-gap);
    align-items: start;
}


/* Colonne menu */
.tw-menu-layout__menu {
    position: relative;
    min-width: 0;
}


/* Colonne image + bouton */
.tw-menu-layout__dish {
    position: relative;
    min-width: 0;
    display: block;
    text-align: center;
}


/* Photo du plat */
.tw-menu-layout__dish img {
    display: block;
    width: 100%;
    max-width: var(--tw-menu-dish-max-width);
    height: auto;
    margin: 0 auto;

    border: var(--tw-photo-border) solid #faf8f4;
    border-radius: 1rem;
    background: #faf8f4;

    box-shadow:
        0 3px 6px rgba(0, 0, 0, .14),
        0 18px 34px rgba(0, 0, 0, .20);
}


/* Bouton sous la photo */
.tw-menu-layout__download {
    margin: 1.5rem 0 0;
    text-align: center;
}
.tw-menu-layout__download .tw-button {
	
}

/* ----------------------------------------------------------
   4. Punaises
   ---------------------------------------------------------- */

.tw-menu-layout__menu::before,
.tw-menu-layout__dish::before {
    content: "";
    position: absolute;
    top: var(--tw-pin-top);
    left: 50%;
    z-index: 5;

    width: var(--tw-pin-size);
    height: var(--tw-pin-size);
    border-radius: 50%;

    transform: translateX(-50%);

    background:
        radial-gradient(circle at 35% 35%, #fff8e8 0 18%, #c7a36d 45%, #6f4a25 100%);

    box-shadow:
        0 2px 4px rgba(0, 0, 0, .25),
        inset 0 1px 2px rgba(255, 255, 255, .6);
}


/* ----------------------------------------------------------
   5. Carte menu HTML générée
   ---------------------------------------------------------- */

.ch-menu-card {
  

    max-width: var(--tw-menu-card-max-width);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem);

    color: var(--ch-menu-text);
    background: var(--ch-menu-bg);
    border: 1px solid var(--ch-menu-border);
}
.ch-menu-card {
    margin-bottom: 4.5rem;
}

/*  bordure biseautée */

.ch-menu-card {
     filter:
        drop-shadow(0 2px 3px rgba(0, 0, 0, .10))
        drop-shadow(0 10px 18px rgba(0, 0, 0, .10));

    clip-path: polygon(
        10% 0,
        86% 0,
        100% 8%,
        100% 100%,
        0 100%,
        0 8%
    );
}
/* Titre de la carte */


.tw-section--menu .tw-section__title {
    margin: 0 0 0.5rem;
    padding-left: 2rem;

    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 400;
    letter-spacing: .02em;

    color: #5f4732;

    text-shadow:
        0 1px 0 rgba(255,255,255,.15),
        0 -1px 0 rgba(0,0,0,.25);
}
/* Liste des plats */
.ch-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}


/* Ligne de plat */
.ch-menu-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
	font-size: 14px;
    align-items: baseline;
    margin-bottom: 0.65rem;
}


/* Contenu plat + ingrédients */
.ch-menu-item__content {
    min-width: 0;
}


/* Nom du plat */
.ch-menu-item__title {
    font-weight: 300;
}


/* Ingrédients */
.ch-menu-item__ingredient {
    color: var(--ch-menu-muted);
}


/* Séparateur entre le plat et les ingrédients */
.ch-menu-item__ingredient::before {
    content: var(--ch-menu-separator);
    color: var(--ch-menu-muted);
}


/* Prix */
.ch-menu-item__price {
    white-space: nowrap;
    font-weight: 700;
}


/* Séparateur visuel entre groupes de plats */
.ch-menu-separator {
    height: 1.4rem;
}


/* ----------------------------------------------------------
   6. Variantes de séparateur
   À activer en remplaçant --ch-menu-separator dans .ch-menu-card
   ---------------------------------------------------------- */

/*
.ch-menu-card { --ch-menu-separator: " · "; }
.ch-menu-card { --ch-menu-separator: " / "; }
.ch-menu-card { --ch-menu-separator: " — "; }
.ch-menu-card { --ch-menu-separator: " ✶ "; }
*/


/* ----------------------------------------------------------
   7. Cas PDF seul
   ---------------------------------------------------------- */

.tw-menu-pdf-only {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;

    text-align: center;
    background: #f8f3ea;
    border-radius: 1rem;
}

.tw-menu-pdf-only__dish {
    margin-bottom: 2rem;
}

.tw-menu-pdf-only__dish img {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
    border-radius: 1rem;
}

.tw-menu-pdf-only__text {
    max-width: 550px;
    margin: 0 auto 1.5rem;
}


/* ----------------------------------------------------------
   8. Ancienne image de menu
   ---------------------------------------------------------- */

.tw-menu-pdf-preview {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.tw-menu-pdf-preview img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.tw-menu-pdf-preview__download {
    margin-top: 1.5rem;
}


/* ----------------------------------------------------------
   9. Responsive
   ---------------------------------------------------------- */

@media (max-width: 900px) {
    .tw-menu-layout--html {
        grid-template-columns: 1fr;
    }

	.tw-menu-layout {
		background-image: none;
	}
	.tw-section--menu .tw-section__inner {
    	padding: 5% 1%;
    	background-size: cover;
		
	}
	.tw-section--menu {
		padding-block : 0px!important;
	}
	.ch-menu-card {
     	filter:
        	drop-shadow(0 2px 3px rgba(0, 0, 0, .10))
        	drop-shadow(0 10px 18px rgba(0, 0, 0, .10));

    	clip-path: none;
	}
	
	
	.tw-menu-layout__dish img {
		display: none;
	}
	/* punaise */
	.ch-menu-card {margin-bottom: 0px;}
	.tw-menu-layout__download {
		margin: 0px;
	}
	.tw-menu-layout__dish::before {
		display: none;
	}

}

@media (max-width: 600px) {
    .tw-section--menu {
        --tw-photo-border: 6px;
        --tw-pin-size: 15px;
        --tw-pin-top: -6px;
    }

    .ch-menu-card {
        padding: 2rem 1.5rem;
    }
}