/* ==========================================================
   TWAL CORE
   Destination future : assets/css/twal-core.css
   Rôle : variables, reset léger, styles globaux
   ========================================================== */


:root {

    /* =========================================================
       HERO
       ========================================================= */

    --tw-hero-height: 620px;
    --tw-hero-bg: #455538;
    --tmp_tw-hero--inner-bg: rgba(69, 85, 56, .82);
	--tw-hero--inner-bg: rgba(69, 85, 56, .76);
    --tw-hero-container: 1180px;
    --tw-hero-content-width: 560px;
    --tw-hero-visual-width: 58%;

    --tw-hero-title-size: clamp(2.4rem, 5vw, 4.8rem);
    --tw-hero-accroche-size: clamp(1.2rem, 1.8vw, 1.5rem);
    --tw-hero--inner-accroche-size: clamp(1.5rem, 1.8vw, 1.8rem);


    /* =========================================================
       COULEURS GLOBALES
       ========================================================= */

    --tw-color-primary: #455538;
    --tw-color-primary-light: #6B7A5F;
    --tw-color-primary-dark: #2F3B27;

    --tw-color-accent: #B98552;
    --tw-color-accent-dark: #8F623D;

    --tw-color-text: #2F302A;
    --tw-color-muted: rgba(47, 48, 42, .72);
    --tw-color-heading: #25251F;
    --tmp_tw-color-border: rgba(69, 85, 56, .14);
	--tw-color-border: rgba(69, 85, 56, .12);


    /* =========================================================
       SECTIONS
       ========================================================= */

	 --twal-section-spacing: clamp(3rem, 6vw, 6rem);
    --twal-container-width: 1180px;
	
	--tw-font-body: 'Inter', system-ui, sans-serif;
    --tw-font-title: 'DM Serif Display', Georgia, serif;
	
    --tw-section-bg-1: #F5F1EA;
    --tmp_tw-section-bg-2: #FAF7F1;
	--tw-section-bg-2: #FCF8F1;

    --tw-section-text: var(--tw-color-text);
    --tw-section-muted: var(--tw-color-muted);
    --tw-section-title: var(--tw-color-heading);

    --tw-section-container: 1180px;
    --tw-section-radius: 2rem;
    --tw-media-radius: 1.35rem;
    --tw-gallery-radius: .85rem;

    --tw-section-gap: clamp(2rem, 4vw, 4rem);


    /* =========================================================
       BLOCS D'ACTION HERO
       ========================================================= */

    --tw-action-bg: rgba(255, 255, 255, .86);
    --tw-action-primary-bg: var(--tw-color-primary);
 
    --tw-action-shadow: 0 12px 28px rgba(0, 0, 0, .08);


    /* =========================================================
       BOUTONS GÉNÉRIQUES
       ========================================================= */

    --tw-button-bg: rgba(255, 255, 255, 1);
    --tw-button-bg-hover: #fff;

    --tw-button-color: var(--tw-color-primary);
    --tw-button-icon-bg: var(--tw-color-primary);
    --tw-button-icon-color: #fff;

    --tw-button-shadow: 0 10px 24px rgba(0, 0, 0, .06);
    --tw-button-shadow-hover: 0 14px 30px rgba(0, 0, 0, .10);
	
	/* =========================================================
       GRAISSES
       ========================================================= */
	--tw-strong : 500;
	--tw-x-strong : 600;
	
	/*==============================================
	 * BORDER ET RADIUS
	 * ============================================*/
	--tw-button-radius: 10px;
	--tw-image-radius : 10px;
	--tw-action-radius: 10px;
	
}

/* ==========================================================
   RESET LARGEUR — évite les débordements fantômes
   ========================================================== */

html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
}

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

img,
svg,
video,
iframe {
    max-width: 100%;
}

body {
    font-family: var(--tw-font-body);
}
h1,
h2,
h3 {
    font-family: var(--tw-font-title);
}

strong {
	font-weight: 600;
}
/* ==========================================================
   TWAL LAYOUT
   Destination future : assets/css/twal-layout.css
   Rôle : section, inner, layout, colonnes
   ========================================================== */

.tw-section {
    width: 100%;
    padding-block: var(--twal-section-spacing);
}

.tw-section__inner {
    max-width: var(--twal-container-width);
    margin-inline: auto;
    padding-inline: 1.25rem;
}


/* ==========================================================
   TWAL MEDIA
   Destination future : assets/css/twal-media.css
   Rôle : images, galeries, vidéos
   ========================================================== */

.tw-media img,
.tw-gallery img {
    display: block;
    width: 100%;
    height: auto;
}


/* ==========================================================
   TWAL PAGE DORMIR
   Destination future : assets/css/pages/page-dormir.css
   Rôle : ajustements spécifiques au prototype Dormir
   ========================================================== */

.twal-page--dormir .tw-layout--45-55 {
    grid-template-columns: 45fr 55fr;
}

/* ==========================================================
   TWAL HERO ACTIVITY
   Destination future : assets/css/twal-hero.css
   Rôle : hero avec contenu à gauche et image à droite
   ========================================================== */



.tw-hero {
    position: relative;
    overflow: hidden;
    min-height: var(--tw-hero-height);
    background: var(--tw-hero-bg);
    color: var(--tw-color-text);
}

.tw-hero__inner {
    position: relative;
    min-height: var(--tw-hero-height);
}

.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));
}



/* HERO INNER pages enfants */
.tw-hero.tw-hero--inner .tw-hero__content {
	width: 100%;
	
}
.tw-hero.tw-hero--inner {
	background : var(--tw-hero--inner-bg);
}
.tw-hero.tw-hero--inner .tw-hero__inner, .tw-hero.tw-hero--inner {
	min-height: 100px;
}



/* ==========================================================
   HERO — Image desktop
   ========================================================== */

.tmp_tw-hero {
    position: relative;
    overflow: hidden;
    background: var(--tw-hero-bg);
}

.tw-hero__inner {
    position: relative;
    z-index: 2;
}

/* image arriere plan **/

.tw-hero__visual {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 1;
    width: var(--tw-hero-visual-width, 55%);
    overflow: hidden;
}

.tw-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.tw-hero__visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            var(--tw-hero-bg) 0%,
            color-mix(in srgb, var(--tw-hero-bg) 92%, transparent) 14%,
            color-mix(in srgb, var(--tw-hero-bg) 55%, transparent) 34%,
            transparent 58%
        );
}

.tw-hero__kicker {
    margin: 0 0 1rem;
    color: var(--tw-color-primary);
    text-transform: uppercase;
    letter-spacing: .09em;
    font-size: .82rem;
    font-weight: 800;
}

.tw-hero__title {
    margin: 0 0 1rem;
    color: var(--tw-color-accent);
    font-size: var(--tw-hero-title-size);
    line-height: 1.15;
    font-weight: var(--tw-strong);
}

.tw-hero__kicker,
.tw-section__subtitle,
.tw-menu .current-menu-item > a {
    color: var(--tw-color-accent);
}

/*--- INNER ---*/
.tw-hero.tw-hero--inner .tw-hero__title {
	color: #fff;
}
/* accroche */
.tw-hero__accroche {
    margin: 0 0 2rem;
    color: #fff; /*var(--tw-color-text); */
    font-size: var(--tw-hero-accroche-size);
    line-height: 2.8rem;
    font-weight: 600;
    tmp_letter-spacing: -.14em;
}
.tw-hero.tw-hero--inner  .tw-hero__accroche {
	font-size: var(--tw-hero--inner-accroche-size);
	font-weight: 500;
}
.tw-hero__accroche span {
    color: var(--tw-color-accent);
}

.tw-hero__meta {
    display: grid;
    gap: .7rem;
    margin-block: 2rem;
}

.tw-hero__meta-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .98rem;
    line-height: 1.45;
    color: var(--tw-color-text);
}

.tw-hero__meta-item svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    color: var(--tw-color-primary);
}
/* ==========================================================
   HERO — Groupe de boutons d’action
   Objectif :
   - 3 boutons par ligne
   - icône au-dessus du texte
   - boutons compacts
   - texte contenu dans le bouton
   ========================================================== */
.tw-hero__actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;

    /* IMPORTANT */
    min-width: 0;
    max-width: 100%;
}

/* Bouton */
.tw-hero__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 74px;

    padding: .65rem .45rem;

    border: 1px solid var(--tw-color-border);
    border-radius: var(--tw-action-radius);
    background: var(--tw-action-bg);
    color: var(--tw-color-text);
    text-decoration: none;

    box-shadow: var(--tw-action-shadow);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.tw-hero__action:hover {
    transform: translateY(-2px);
    color: var(--tw-color-text);
    border-color: color-mix(in srgb, var(--tw-color-primary) 18%, transparent);
}

/* Icône au-dessus du texte */
.tw-hero__action-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;
    margin-bottom: .35rem;

    color: var(--tw-color-primary);
    line-height: 1;
    flex: 0 0 auto;
}

.tw-hero__action-icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Icône WhatsApp légèrement plus grande */
.ch-hero__action--whatsapp .tw-hero__action-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.4;
}

/* Texte */
.tw-hero__action-text {
    display: block;
    width: 100%;
    min-width: 0;

    text-align: center;
}

.tw-hero__action-text strong {
    display: block;

    max-width: 100%;

    font-size: clamp(.68rem, 1.7vw, .82rem);
    line-height: 1.12;
    font-weight: 700;

    overflow-wrap: anywhere;
    hyphens: auto;
}

.tw-hero__action-text small {
    display: block;

    margin-top: .15rem;

    font-size: .7rem;
    line-height: 1.15;
    opacity: .7;
}

/* Bouton primaire */
.tw-hero__action--primary {
    background: var(--tw-action-primary-bg);
    color: #fff;
}

.tw-hero__action--primary:hover,
.tw-hero__action--primary .tw-hero__action-icon,
.tw-hero__action--primary .tw-hero__action-text small {
    color: #fff;
}

/* ==========================================================
   HERO — Actions
   Rôle :
   - conteneur des boutons d’action du hero
   - affichage en grille 3 colonnes
   ========================================================== */

.tw-hero__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;

    min-width: 0;
    max-width: 100%;
}


/* ==========================================================
   HERO — Bouton d’action
   Rôle :
   - bouton compact
   - icône au-dessus du texte
   - fond clair sur hero sombre
   ========================================================== */

.tmp_tw-hero__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 74px;
    padding: .65rem .45rem;

    border: 1px solid var(--tw-color-border);
    border-radius: var(--tw-action-radius);
    background: var(--tw-action-bg);
    color: var(--tw-color-text);
    text-decoration: none;

    box-shadow: var(--tw-action-shadow);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease,
        background .2s ease;
}
.tw-hero__action {
    display: flex;
    flex-direction: row;

    align-items: center;
    justify-content: center;
    gap: .65rem;

    min-height: 64px;
    padding: .9rem 1rem;
}

.tw-hero__action:hover {
    transform: translateY(-2px);
    background: #fff;
    color: var(--tw-color-text);
    border-color: color-mix(in srgb, var(--tw-color-primary) 22%, transparent);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .12);
}


/* ==========================================================
   HERO — Icônes des boutons
   Rôle :
   - icône centrée au-dessus du texte
   - SVG conservé en stroke
   ========================================================== */

.tmp_tw-hero__action-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;
    margin-bottom: .35rem;

    color: var(--tw-color-primary);
    line-height: 1;
    flex: 0 0 auto;
}
.tw-hero__action-icon {
    margin-bottom: 0;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}
.tw-hero__action-icon svg {
    display: block;

    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Ajustement spécifique WhatsApp */
.ch-hero__action--whatsapp .tw-hero__action-icon svg,
.tw-hero__action--whatsapp .tw-hero__action-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.4;
}


/* ==========================================================
   HERO — Texte des boutons
   Rôle :
   - texte centré
   - gestion des textes longs
   ========================================================== */
/*
.tw-hero__action-text {
    display: block;
    width: 100%;
    min-width: 0;

    text-align: center;
}

.tw-hero__action-text strong {
    display: block;
    max-width: 100%;

    font-size: clamp(.68rem, 1.7vw, .82rem);
    line-height: 1.12;
    font-weight: 700;

    overflow-wrap: anywhere;
    hyphens: auto;
}
*/
.tw-hero__action-text {
    width: auto;
    text-align: left;
}

.tw-hero__action-text strong {
    font-size: .9rem;
    line-height: 1.2;
}
.tw-hero__action-text small {
    display: block;

    margin-top: .15rem;

    font-size: .7rem;
    line-height: 1.15;
    opacity: .7;
}


/* ==========================================================
   HERO — Bouton primaire éventuel
   Rôle :
   - variante pleine si besoin
   ========================================================== */

.tw-hero__action--primary {
    background: var(--tw-action-primary-bg);
    color: #fff;
}

.tw-hero__action--primary:hover {
    color: #fff;
}

.tw-hero__action--primary .tw-hero__action-icon,
.tw-hero__action--primary .tw-hero__action-text small {
    color: #fff;
}

/* ==========================================================
   HERO — Mobile / tablette
   Image sous le contenu avec dégradé vertical
   ========================================================== */

/* ==========================================================
   HERO — Responsive tablette / mobile
   ========================================================== */
@media (max-width: 900px) {


    .tw-hero,
    .tw-hero__inner {
        min-height: auto;
    }

    .tw-hero__inner {
        display: flex;
        flex-direction: column;
    }

    .tw-hero__content {
        position: relative;
        z-index: 3;
        width: auto;
        margin: 0;
        padding: 3rem 1.25rem;
    }

    .tw-hero__visual {
        position: relative;
        inset: auto;
        z-index: 1;
        width: 100%;
        min-height: 280px;
        margin-top: -1px;
        overflow: hidden;
    }

    .tw-hero__image {
        width: 100%;
        height: 100%;
        min-height: 280px;
        object-fit: cover;
        object-position: center;
    }

    .tw-hero__visual::before {
        background:
            linear-gradient(
                180deg,
                var(--tw-hero-bg) 0%,
                color-mix(in srgb, var(--tw-hero-bg) 82%, transparent) 12%,
                color-mix(in srgb, var(--tw-hero-bg) 35%, transparent) 32%,
                transparent 58%
            );
    }




    /* Boutons d’action */
    .tw-hero__actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .55rem;
    }

    .tw-hero__action {
        min-height: 68px;
        padding: .55rem .35rem;
    }

    .tw-hero__action-icon {
        width: 24px;
        height: 24px;
        margin-bottom: .28rem;
    }

    .tw-hero__action-icon svg {
        width: 19px;
        height: 19px;
    }

    .tw-hero__action-text strong {
        font-size: .68rem;
        line-height: 1.08;
    }
}


/* ==========================================================
   HERO — Très petits écrans
   ========================================================== */
@media (max-width: 420px) {

    .tw-hero__actions {
        gap: .45rem;
    }

    .tw-hero__action {
        min-height: 64px;
        padding: .5rem .25rem;
    }

    .tw-hero__action-text strong {
        font-size: .62rem;
    }
}


/* ==============================
   HEADER / MENU PRINCIPAL
   Chalet d'en Ô
   ============================== */

/* ==============================
   HEADER / MENU CHALET D'EN Ô
   ============================== */

/* Barre générale */
.twal-site-header {
    position: relative;
    z-index: 9999;
    background: #fffaf2;
    border-bottom: 1px solid rgba(80, 55, 35, 0.12);
}

/* Navigation */
.twal-navbar {
    min-height: 76px;
    padding: 0;
}

/* Conteneur aligné sur les sections du site */
.twal-navbar__inner {
    width: min(100% - 48px, var(--tw-section-inner-width, 1200px));
    max-width: var(--tw-section-inner-width, 1200px);
    margin-inline: auto;
    padding-inline: 0;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 42px;
}

/* Logo */
.twal-navbar__brand {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.twal-navbar__logo img {
    display: block;
    width: auto;
    max-height: 58px;
}

/* Menu principal */
.twal-navbar__collapse {
    flex-grow: 0;
}

.twal-navbar__menu {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Liens du menu */
.twal-navbar__menu > .menu-item > a {
    display: inline-flex;
    align-items: center;
    min-height: 76px;

    font-family: var(--tw-font-body, Inter, sans-serif);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.045em;
    text-transform: uppercase;

    color: var(--tw-brun, #4b3424);
    text-decoration: none;
    transition: color .2s ease;
}

/* État actif / survol */
.twal-navbar__menu > .current-menu-item > a,
.twal-navbar__menu > .menu-item > a:hover {
    color: var(--tw-vert, #4f6f52);
}


/* ==============================
   DESKTOP
   - menu visible
   - hamburger masqué
   ============================== */

@media (min-width: 992px) {

    .twal-navbar__collapse {
        display: block !important;
        position: static;
        width: auto;
    }

    .twal-navbar__toggle {
        display: none !important;
    }

    .twal-navbar__menu {
        flex-direction: row;
    }
}


/* ==============================
   MOBILE
   - logo à gauche
   - hamburger à droite
   - panneau en surimpression
   - le hero ne descend pas
   ============================== */

@media (max-width: 991.98px) {

    /* Hauteur de la barre mobile */
    .twal-navbar {
        position: relative;
        min-height: 70px;
    }

    /* Ligne logo + hamburger */
    .twal-navbar__inner {
        width: calc(100% - 32px);
        min-height: 70px;

        justify-content: space-between;
        gap: 16px;
        flex-wrap: nowrap;
    }

    /* Logo mobile */
    .twal-navbar__logo img {
        max-height: 52px;
    }

    /* Bouton hamburger */
    .twal-navbar__toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;

        width: 42px;
        height: 42px;
        margin-left: auto;

        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    /* Trait central du hamburger */
    .twal-navbar__burger {
        position: relative;
        display: block;

        width: 30px;
        height: 3px;

        background: var(--tw-vert, #4f6f52);
        border-radius: 999px;

        transition: background .25s ease;
    }

    /* Traits haut et bas */
    .twal-navbar__burger::before,
    .twal-navbar__burger::after {
        content: "";
        position: absolute;
        left: 0;

        display: block;
        width: 30px;
        height: 3px;

        background: var(--tw-vert, #4f6f52);
        border-radius: 999px;

        transition:
            top .25s ease,
            transform .25s ease;
    }

    /* Trait haut */
    .twal-navbar__burger::before {
        top: -9px;
    }

    /* Trait bas */
    .twal-navbar__burger::after {
        top: 9px;
    }

    /* État ouvert : le trait central disparaît */
    .twal-navbar__toggle.is-open .twal-navbar__burger {
        background: transparent;
    }

    /* État ouvert : diagonale 1 */
    .twal-navbar__toggle.is-open .twal-navbar__burger::before {
        top: 0;
        transform: rotate(45deg);
    }

    /* État ouvert : diagonale 2 */
    .twal-navbar__toggle.is-open .twal-navbar__burger::after {
        top: 0;
        transform: rotate(-45deg);
    }

    /* Panneau mobile fermé */
    .twal-navbar__collapse {
        display: none !important;

        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        width: 100%;
        background: #fffaf2;
        border-top: 2px solid var(--tw-vert, #4f6f52);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);

        z-index: 9999;
    }

    /* Panneau mobile ouvert */
    .twal-navbar__collapse.show {
        display: block !important;
    }

    /* Liste du menu mobile */
    .twal-navbar__menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        width: calc(100% - 32px);
        margin: 0 auto;
        padding: 18px 0 20px;

        background: transparent;
        border-top: 0;
    }

    /* Liens du menu mobile */
    .twal-navbar__menu > .menu-item > a {
        display: block;
        min-height: auto;
        padding: 12px 0;

        font-size: 15px;
        text-align: left;
    }
}

/* fin menu */
/* ==========================================================
   TWAL CTA MAIN GROUP CALL TO ACTION
   Destination future : assets/css/twal-components.css
   Rôle : groupe d'actions principal, réutilisable dans toutes les sections
   ========================================================== */

.cta-main-group {
    width: min(680px, 100%);
    margin-top: 2rem;
}

.cta-main-group .tw-hero__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    margin: 0;
}


/*------------------------------------------------------------
 * 
 * SECTIONS INTERIEURS
 * 
 * ---------------------------------------------------------*/



/* ==========================================================
   TWAL SECTIONS STANDARD
   Destination future : assets/css/twal-sections.css
   ========================================================== */

.tw-section {
    position: relative;
    width: 100%;
    padding-block: clamp(4rem, 7vw, 7rem);
	 padding-block: clamp(3rem, 3vw, 3rem);
    color: var(--tw-section-text);
}

.tw-section--standard:nth-of-type(odd) {
    background: var(--tw-section-bg-1);
}

.tw-section--standard:nth-of-type(even) {
    background: var(--tw-section-bg-2);
}

/* section contenu */

.tw-section__inner {
    width: min(var(--tw-section-container), calc(100% - 2.5rem));
    margin-inline: auto;
	background : #FFFAF2;
	padding-block: clamp(1rem, 1vw, 1rem);
	border: 1px solid var(--tw-color-border);
	border-radius : 20px;
}

/* EN-TETE DE SECTION */

.tw-section__header {
	position: relative;
	 padding-bottom: 1.8rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
	margin-top: clamp(1.6rem, 2vw, 1.8rem);
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.tw-section__header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(100%, 260px);
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(90, 70, 45, .28),
        rgba(90, 70, 45, 0)
    );
}

.tw-section__title {
    margin: 0 0 .75rem;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    line-height: 1.05;
    font-weight: 700;
    color: var(--tw-section-title);
}

/* ACCROCHE */
/*
.tw-section__hook {
    tmp_max-width: 760px;
    margin: 0;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.55;
    color: var(--tw-section-muted);
}
.tw-section__hook {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--tw-color-muted);
    max-width: 75ch;
}
.tw-section__hook {
    max-width: 65ch;
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 500;
    color: var(--tw-color-text);
}
*/

/*.tw-section__hook {
    max-width: 65ch;
    padding-top: .75rem;
    position: relative;
}

.tmp_tw-section__hook::before {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background: var(--tw-color-primary);
    margin-bottom: 1rem;
    opacity: .4;
}
*/

.tw-section__hook {
    font-size: 1.0rem;
    line-height: 1.65;
    color: var(--tw-color-text);
    max-width: 65ch;
    font-weight: 500;
}
/* BOUTON découvrir */

.tw-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
	font-size: 16px;
    padding: .8rem 1.15rem .8rem 1.35rem;
    border-radius: 999px;
	border-radius: var(--tw-action-radius);
    background: var(--tw-button-bg);
    color: var(--tw-button-color);
	border: none;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;

    box-shadow: var(--tw-button-shadow);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.tw-button::after {
    content: "→";
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;

    background: var(--tw-button-icon-bg);
    color: var(--tw-button-icon-color);

    font-size: .95rem;
    font-weight: 700;
    line-height: 1;

    transform: translateX(0);
    transition: transform .2s ease;
}

.tw-button:hover,
.tw-button:focus-visible {
    transform: translateY(-2px);
    background: var(--tw-button-bg-hover);
    box-shadow: var(--tw-button-shadow-hover);
	color: var(--tw-color-primary-dark);
}

.tw-button:hover::after,
.tw-button:focus-visible::after {
    transform: translateX(.18rem);
}
button.tw-button {
	  background-color: var(--tw-color-primary);
	color: white;
 
  cursor: pointer;
  transition: background-color 0.3s ease;
}
/* ==========================================================
   TWAL LAYOUT
   Rôle : organisation média / texte
   ========================================================== */

.tw-layout {
    display: grid;
    gap: var(--tw-section-gap);
    align-items: start;
}

.tw-layout--50-50 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.tw-layout--45-55 {
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
}
/*-------------------------
 * ALTERNANCE TEXTE-MEDIA
 * ---------------------------*/
/*
.tw-layout--45-55 {
    --tw-layout-col-1: 45fr;
    --tw-layout-col-2: 55fr;

    grid-template-columns:
        minmax(0, var(--tw-layout-col-1))
        minmax(0, var(--tw-layout-col-2));
}

.tw-layout--text-media.tw-layout--45-55 {
    --tw-layout-col-1: 55fr;
    --tw-layout-col-2: 45fr;
}
*/

/* on force la mise en page à 48 pour l'image et 52 pour le texte question de lisiblité */

.tw-layout--45-55 {
    --tw-layout-col-1: 48fr;
    --tw-layout-col-2: 52fr;

    grid-template-columns:
        minmax(0, var(--tw-layout-col-1))
        minmax(0, var(--tw-layout-col-2));
}

/* Texte à gauche : on élargit un peu le texte, sans écraser l’image */
.tw-layout--text-media.tw-layout--45-55 {
    --tw-layout-col-1: 52fr;
    --tw-layout-col-2: 48fr;
}
/* semble faux *
.tw-layout--text-image.tw-layout--45-55 {
    --tw-layout-col-1: 55fr;
    --tw-layout-col-2: 45fr;
}

*/
.tw-layout--55-45 {
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
}

.tw-layout--media-text .tw-layout__media {
    order: 1;
}

.tw-layout--media-text .tw-layout__content {
    order: 2;
}

.tw-layout--text-media .tw-layout__content {
    order: 1;
}

.tw-layout--text-media .tw-layout__media {
    order: 2;
}

.tw-layout__media,
.tw-layout__content {
    min-width: 0;
}

.tw-layout__content {
    font-size: clamp(1rem, 1.15vw, 1.12rem);
    line-height: 1.75;
    color: var(--tw-section-text);
}

.tw-layout__content h3, .tw-layout__content h2 {
    margin: 0 0 .65rem;
    font-size: clamp(1.35rem, 1.8vw, 1.8rem);
    line-height: 1.15;
    color: var(--tw-section-title);
}
.tw-layout__content h3:not(:first-child) {
    margin-top: 1.6rem;
}

/* h2 */

.tw-layout__content > h2 {
	margin-top: 0px;
	padding-top: 0px;
	
}
.tw-layout__content h2 {
	font-size: 1.4em;
	font-weight: var(--tw-strong);
}


.tw-layout__content p {
    margin: 0 0 1.2rem;
}

.tw-layout__content > *:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   TWAL MEDIA
   Destination future : assets/css/twal-media.css
   Rôle : image principale, bloc média, vidéo
   ========================================================== */

.tw-media {
    width: 100%;
}

.tw-media > img,
.tw-media__image,
.tw-layout__media > img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--tw-media-radius, 1.4rem);
    object-fit: cover;
}

.tw-media--image-gallery > img,
.tw-media--image-video-gallery > img {
    margin-bottom: 1rem;
}

/* ==========================================================
   TWAL GALLERY
   Destination future : assets/css/twal-gallery.css
   Rôle : galerie compacte ou galerie de section
   ========================================================== */

.tw-gallery {
    display: grid;
    gap: .85rem;
}

.tw-gallery--limit-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tw-gallery--under-image {
    margin-top: 1rem;
}

.tw-gallery--under-section {
    margin-top: clamp(2rem, 4vw, 3rem);
}

.tw-gallery__item {
    position: relative;
    overflow: hidden;
    margin: 0;
    border-radius: var(--tw-gallery-radius, 1rem);
    background: #f3f3f3;
}

.tw-gallery__item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    transition: transform .25s ease;
}

.tw-gallery__item:hover img {
    transform: scale(1.035);
}

/*----PLUS D'IMAGES ---*/
.tw-gallery__more {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .42);
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
}

/* ==========================================================
   TWAL RESPONSIVE
   Destination future : assets/css/twal-responsive.css
   ========================================================== */



/* effet de transigion révélation des section */
/* ==========================================================
   TWAL — ANIMATION AU SCROLL
   Destination future : assets/css/twal-animations.css
   ========================================================== */

:root {
    --tw-reveal-duration: .8s;
}

.tw-reveal {
    opacity: 0;
    transform: translateY(40px) scale(.985);

    transition:
        opacity var(--tw-reveal-duration) ease,
        transform var(--tw-reveal-duration) ease;
}

.tw-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {

    .tw-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================
   TWAL VIDEO COVER
   Destination future : assets/css/twal-video.css
   Rôle : vidéo superposée uniquement à l'image principale
   ========================================================== */

/* Conteneur strict de l'image + vidéo */
.tw-media__cover {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: var(--tw-media-radius);

}

/* Image de couverture */
.tw-media__cover .tw-cover-image-link,
.tw-media__cover .tw-cover-image-link img {
    display: block;
    width: 100%;
    height: auto;
}

/* Le wrapper vidéo doit impérativement être superposé */
.tw-media__cover > .tw-video--cover {
    position: absolute !important;
    inset: 0 !important;
    z-index: 5;

    display: grid;
    place-items: center;

    width: 100%;
    height: 100%;

    overflow: hidden;
    border-radius: inherit;

    pointer-events: none;
}

/* La vidéo remplit le cadre de l'image */
.tw-media__cover > .tw-video--cover video {
    position: absolute;
    inset: 0;

    display: block !important;
    width: 100%;
    height: 100%;

    object-fit: cover;
    border-radius: inherit;

    opacity: 0;
    transition: opacity .35s ease;
}

/* Quand la vidéo joue */
.tw-media__cover > .tw-video--cover.is-playing video {
    opacity: 1;
}

/* Bouton play */
.tw-media__cover .tw-video__play {
    position: relative;
    z-index: 6;

    display: grid;
    place-items: center;

    width: clamp(64px, 8vw, 92px);
    height: clamp(64px, 8vw, 92px);

    padding: 0;
    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, .88);
    color: #202426;
    cursor: pointer;

    box-shadow: 0 14px 32px rgba(0, 0, 0, .22);

    pointer-events: auto;
}

/* Triangle play */
.tw-media__cover .tw-video__play::before {
    content: "";
    width: 0;
    height: 0;

    transform: translateX(3px);

    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 21px solid currentColor;
}

/* Quand la vidéo est lancée automatiquement */
.tw-media__cover > .tw-video--cover.is-playing .tw-video__play {
    opacity: 0;
    pointer-events: none;
}

/*===========================================
 *
 * MOBILE ACTIONS
 *
 * ==========================================*/

.ch-mobile-actions {

    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 8px;

    z-index: 9999;

    display: none;

    background: rgba(255,248,242,0.96);

    backdrop-filter: blur(10px);

    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;

    box-shadow: 0 8px 24px rgba(0,0,0,0.08);

    padding: 6px 6px 7px;
}


/*-------------------------------------------
 * Titre
 *------------------------------------------*/

.ch-mobile-actions-title {

    text-align: center;

    font-size: 9px;
    font-weight: 500;

    letter-spacing: .14em;
    text-transform: uppercase;

    color: rgba(47,42,36,.45);

    margin-bottom: 2px;
}


/*-------------------------------------------
 * Ligne d'actions
 *------------------------------------------*/

.ch-mobile-actions-links {

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/*-------------------------------------------
 * Boutons
 *------------------------------------------*/

.ch-mobile-action {

    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 2px;

    padding: 5px 4px 4px;

    text-decoration: none;

    color: #2f2a24;

    font-size: 10px;
    font-weight: 500;
    line-height: 1.1;

    transition: opacity .2s ease;
}

.ch-mobile-action:active {

    opacity: .6;
}


/*-------------------------------------------
 * Icônes
 *------------------------------------------*/

.ch-mobile-action svg {

    width: 18px;
    height: 18px;

    display: block;
}


/*-------------------------------------------
 * Mobile uniquement
 *------------------------------------------*/

@media (max-width: 767px) {

    .ch-mobile-actions {

        display: block;
    }

    body {

        padding-bottom: 78px;
    }
}


/*-------------------------------------------
 * Desktop
 *------------------------------------------*/

@media (min-width: 768px) {

    .ch-mobile-actions {

        display: none !important;
    }
}

/* ==========================================================
   FORMULAIRE DE RÉSERVATION
   Shortcode : [formulaire_reservation]
   Objectif :
   - formulaire compact
   - labels masqués au profit des placeholders
   - champs lisibles, doux, cohérents avec l’univers du Chalet
   ========================================================== */

/* Champ piège antispam : invisible pour les visiteurs */
.tw-hp-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ----------------------------------------------------------
   0. Variables de réglage
   ---------------------------------------------------------- */

.tw-reservation-form {
    --tw-form-width: 620px;

	
	
	--tw-form-gap-x: .8rem;        /* espace horizontal */
		--tw-form-gap-y: .7rem;        /* espace vertical entre lignes */
		--tw-form-section-gap: .7rem;  /* espace avant champs table/séjour/groupe */
	--tw-form-submit-gap: 1.8rem;   /* espace avant bouton */
	
 

    --tw-form-field-height: 52px;
    --tw-form-field-radius: 14px;
    --tw-form-field-padding-x: 1rem;

    --tw-form-field-bg: rgba(255, 255, 255, .94);
    --tw-form-field-border: rgba(69, 85, 56, .18);
    --tw-form-field-shadow: 0 8px 20px rgba(0, 0, 0, .025);
}


/* ----------------------------------------------------------
   1. Conteneur général
   ---------------------------------------------------------- */

.tw-reservation-form {
    width: 100%;
    max-width: var(--tw-form-width);
}


/* ----------------------------------------------------------
   2. Grilles de champs
   ---------------------------------------------------------- */

.tw-form-grid,
.tw-form-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--tw-form-gap-x);
    row-gap: var(--tw-form-gap-y);
}

/* Neutralisation des marges parasites */
.tw-reservation-form p,
.tw-form-grid p,
.tw-form-section p {
    margin: 0 !important;
}

/* Champ pleine largeur */
.tw-reservation-form .tw-full {
    grid-column: 1 / -1;
}


/* ----------------------------------------------------------
   3. Labels masqués
   Les placeholders assurent l’affichage visible.
   ---------------------------------------------------------- */

.tw-reservation-form label,
.tw-reservation-form br {
    display: none;
}


/* ----------------------------------------------------------
   4. Champs du formulaire
   ---------------------------------------------------------- */

.tw-reservation-form input,
.tw-reservation-form select,
.tw-reservation-form textarea {
    width: 100%;
    min-height: var(--tw-form-field-height);
    padding: 0 var(--tw-form-field-padding-x);
    border: 1px solid var(--tw-form-field-border);
    border-radius: var(--tw-form-field-radius);
    background: var(--tw-form-field-bg);
    color: var(--tw-color-text);
    font: inherit;
    font-size: .96rem;
    box-shadow: var(--tw-form-field-shadow);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.tw-reservation-form textarea {
    min-height: 120px;
    padding: 1rem var(--tw-form-field-padding-x);
    resize: vertical;
}

.tw-reservation-form input::placeholder,
.tw-reservation-form textarea::placeholder {
    color: rgba(47, 48, 42, .55);
}


/* ----------------------------------------------------------
   5. États focus
   ---------------------------------------------------------- */

.tw-reservation-form input:focus,
.tw-reservation-form select:focus,
.tw-reservation-form textarea:focus {
    outline: none;
    border-color: var(--tw-color-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(69, 85, 56, .10);
}


/* ----------------------------------------------------------
   6. Champs conditionnels
   Table / séjour / groupe
   ---------------------------------------------------------- */

.tw-form-conditional,
.tw-form-autre {
    display: none;
}

/* Espace entre les champs permanents et les champs conditionnels */
.tw-form-conditional[style*="grid"] {
    margin-top: var(--tw-form-section-gap);
}


/* ----------------------------------------------------------
   7. Bouton d’envoi
   ---------------------------------------------------------- */

.tw-form-submit {
    margin-top: var(--tw-form-submit-gap) !important;
}

.tw-form-submit .tw-button {
    min-height: 50px;
    padding: .65rem 1rem .65rem 1.15rem;
}


/* ----------------------------------------------------------
   8. Responsive
   ---------------------------------------------------------- */

@media (max-width: 700px) {
    .tw-reservation-form {
        max-width: none;
    }

    .tw-form-grid,
    .tw-form-section {
        grid-template-columns: 1fr;
    }
}

/*==========================================================
 * 
 * SECTIONS EDITABLE
 * 
 * ========================================================*/
.tw-section {
    position: relative;
}

.tw-section-edit-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 20;

    width: 2rem;
    height: 2rem;
    border-radius: 999px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,.85);
    color: #2f3f2b;
    text-decoration: none;
    font-size: .95rem;

    tmp_opacity: 0;
    transform: translateY(-4px);
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

.tw-section:hover .tw-section-edit-link {
    opacity: 1;
    transform: translateY(0);
}

.tw-section-edit-link:hover {
    background: #fff;
}

@media (max-width: 900px) {
    .tw-section {
        padding-block: clamp(2.5rem, 8vw, 4rem);
    }

    .tw-section__inner {
        width: min(100% - 1.5rem, var(--tw-section-container, 1180px));
		 width: 100%;

    }

    .tw-layout,
    .tw-layout--50-50,
    .tw-layout--45-55,
    .tw-layout--55-45 {
        display: flex;
        flex-direction: column;
        gap: 1.75rem;
    }

    .tw-layout__media {
        order: 1 !important;
    }

    .tw-layout__content {
        order: 2 !important;
    }

    .tw-gallery--limit-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
		/*----
	 * image 100% en mobile
	 * ----------------------*/
	
    .tw-layout {
        display: flex;
        flex-direction: column;
        gap: 1.75rem;
        align-items: stretch;
    }
}