/* ==========================================================================
   --- PALETTE DE COULEURS & CONFIGURATION ---
   ========================================================================== */
:root {
    /* Fonds */
    --bg-cream: #F8F5EE;
    --bg-cream-dark: #F2EEE6;
    --bg-card: #FFFFFF;

    /* Textes & Titres */
    --text-dark: #23395B;       /* Bleu nuit */
    --text-muted: #5C6457;
    --primary-blue: #0E397A;    /* Bleu profond */
    --accent-teal: #0E8B9B;     /* Bleu canard */
    --accent-turquoise: #2DA5B8;

    /* Éléments Orange Ensō */
    --enso-orange: #D97A16;
    --enso-hover: #C56B0B;
    --enso-light: #F19A2A;

    /* Éléments Verts (Secondaires / Nature) */
    --primary-green: #5F7F53;   /* Vert sauge */
    --primary-hover: #48613E;   /* Vert foncé */

    /* Typographies */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
}

/* --- RESET & RÉALIGNEMENT GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, .brand-name {
    color: var(--primary-blue) !important;
}

span.highlight {
    color: var(--accent-teal) !important;
}

header a, footer a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

/* ==========================================================================
   --- HEADER & ELEMENTS DE NAVIGATION ---
   ========================================================================== */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-block, .brand-logo-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.brand-title-group {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre le nom et le slogan l'un par rapport à l'autre */
	margin: 0 30px 0 0;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: var(--primary-blue) !important;
}

.footer-identity-inline .brand-name {
    font-size: 1rem;
}

/* Couleur différenciée pour le nom de famille */
.brand-name .lastname {
    color: var(--accent-teal) !important; /* Bleu canard */
    margin-left: 7px;
}

/* Alignement du slogan */
.brand-baseline {
    font-size: 0.62rem;
    color: var(--accent-teal) !important;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
}

/* Couleur et alignement des points séparateurs orange */
.brand-baseline .orange-dot {
    color: var(--enso-orange);
    margin: 0 0.2em;
    font-size: 0.9rem;
    display: inline-block;
    transform: translateY(-3px); /* Remonte le point au milieu du texte */
}

/* Conteneur global de navigation (Bureau) */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
}

nav a:hover, nav a.active {
    color: var(--accent-teal) !important;
    border-color: var(--accent-teal) !important;
}

nav a.active {
    font-weight: 600;
    border-bottom: 2px solid var(--accent-teal);
    padding-bottom: 4px;
}

/* Style de base du bouton burger (caché sur ordinateur) */
.burger-menu {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 1000;
}

.burger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
}

/* Animation de transformation du burger en 'X' */
.burger-menu.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger-menu.open span:nth-child(2) {
    opacity: 0;
}
.burger-menu.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   --- BOUTONS & ACTIONS ---
   ========================================================================== */
.btn-cta {
    background-color: var(--accent-teal) !important;
    color: #FFFFFF !important;
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-cta:hover {
    background-color: var(--primary-blue) !important;
}

.btn-hero-primary {
    background-color: var(--enso-orange) !important;
    color: #FFFFFF !important;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-hero-primary:hover {
    background-color: var(--enso-hover) !important;
}

.btn-hero-secondary {
    border: 1px solid rgba(14, 57, 122, 0.4) !important;
    color: var(--primary-blue) !important;
    background-color: transparent !important;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-hero-secondary:hover {
    background-color: rgba(14, 57, 122, 0.05) !important;
    border-color: var(--primary-blue) !important;
}

/* ==========================================================================
   --- SECTION HERO ---
   ========================================================================== */
.hero {
    display: flex;
    min-height: 580px;
    position: relative;
    background-color: var(--bg-cream);
    overflow: hidden;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    position: relative;
    z-index: 3;
}

.hero-content {
    width: 50%;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    line-height: 1.3;
    margin-bottom: 25px;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.05rem;
    margin-top: 20px;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.hero-image-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    z-index: 1;
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.05) 12%, rgba(0,0,0,0.6) 28%, rgba(0,0,0,1) 45%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.05) 12%, rgba(0,0,0,0.6) 28%, rgba(0,0,0,1) 45%);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* ==========================================================================
   --- TITRES DE SECTIONS GENERIQUES ---
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 2.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.section-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-teal);
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.section-intro-text {
	max-width: 750px;
	margin: 0 auto 60px auto;
	color: #4A5343;
	font-size: 1.05rem;
}

/* ==========================================================================
   --- SYSTÈME DE CARTES (STRUCTURES / OFFRES) ---
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(14, 57, 122, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(14, 57, 122, 0.06);
}

.card-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 30px;
}

.card-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: inline-block;
}

.tag-orange { color: var(--enso-orange); }
.tag-green { color: var(--primary-green); }
.tag-purple { color: var(--accent-teal); }

.card h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 12px;
}

.card-quote {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card-list li {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.card-list li span.check {
    color: var(--accent-teal);
    font-size: 0.85rem;
    margin-top: 2px;
}

/* ==========================================================================
   --- SECTION ACCOMPAGNEMENT INDIVIDUEL ---
   ========================================================================== */
.individuel-section {
    padding: 80px 20px;
    background-color: #fcfbf7;
}

.individuel-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.indiv-card {
    display: flex;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(14, 57, 122, 0.03);
    align-items: center;
    border: 1px solid rgba(14, 57, 122, 0.06);
}

.indiv-img-block {
    width: 40%;
    height: 280px;
    min-width: 300px;
}

.indiv-img-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.indiv-content-block {
    width: 60%;
    padding: 40px;
}

.indiv-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.tag-light-green { background: #f0f4f1; color: var(--primary-hover); }
.tag-light-orange { background: #fdf5e6; color: var(--enso-orange); }

.indiv-content-block h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
}

.indiv-content-block p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ==========================================================================
   --- SECTION SPLIT (CITATION & ENGAGEMENTS) ---
   ========================================================================== */
.split-info-section {
    padding: 80px 20px;
    background-color: var(--bg-cream-dark);
}

.split-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 40px;
    align-items: stretch;
}

.quote-block-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.quote-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.quote-overlay {
    position: relative;
    z-index: 2;
    background-color: rgba(248, 245, 238, 0.92);
    padding: 50px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 15px;
}

.quote-icon {
    font-size: 3rem;
    color: rgba(14, 57, 122, 0.15);
    line-height: 1;
    margin-bottom: 10px;
}

.features-panel {
    background-color: var(--primary-blue);
    color: #ffffff;
    border-radius: 12px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.features-panel h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 25px;
    line-height: 1.3;
    color: #ffffff !important;
}

.feature-list {
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.feature-check {
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent-turquoise);
}

/* --- SECTION CTA CALL TO ACTION --- */
.cta-section {
	background-color: #faf8f5;
	padding: 80px 20px;
	text-align: center;
}

.cta-section h2 {
	font-family: var(--font-serif);
	color: #0E397A;
	font-size: 2.2rem;
	margin-bottom: 15px;
}

.cta-section p {
	color: var(--text-dark);
	font-size: 1.1rem;
	margin-bottom: 30px;
}

.cta-button {
	background-color: #D97A16;
	color: #ffffff;
	padding: 14px 32px;
	border-radius: 6px;
	font-weight: 600;
	text-decoration: none;
	display: inline-block;
	transition: background-color 0.3s ease;
}

.cta-button:hover {
	background-color: #C56B0B;
}

/* ==========================================================================
   --- BANDEAU RÉASSURANCE ---
   ========================================================================== */
.reassurance-band {
    background-color: var(--bg-card);
    padding: 60px 20px;
    border-top: 1px solid rgba(14, 57, 122, 0.08);
}

.reassurance-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.reassurance-item {
    display: flex;
    gap: 15px;
    text-align: left;
}

.reassurance-icon {
    color: var(--accent-teal);
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: -2px;
}

.reassurance-item h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    font-weight: 600;
}

.reassurance-item p {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.5;
}

/* ==========================================================================
   --- FOOTER GENERAL ---
   ========================================================================== */
footer {
    background-color: var(--bg-cream-dark);
    color: var(--text-dark);
    padding-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 50px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 60px;
}

.footer-block h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.88rem;
}

.footer-nav a:hover {
    color: var(--enso-orange);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 0.88rem;
}

.contact-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-link:hover {
    color: var(--enso-orange);
}

.contact-link svg {
    margin-top: 3px;
    flex-shrink: 0;
    color: var(--accent-teal);
}

.map-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(14, 57, 122, 0.08);
}

/* --- FOOTER CREDITS --- */
.footer-credits {
    background-color: #ffffff;
    padding: 25px 20px;
    border-top: 1px solid #E5E7EB;
}

.credits-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-identity-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-inline-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.footer-inline-text span {
    font-family: var(--font-serif);
    font-weight: 700;
}

.credits-right-block {
    display: flex;
    gap: 20px;
}

.credits-right-block a:hover {
    color: var(--enso-orange);
}

/* ==========================================================================
   --- STRUCTURE DE L'ARTICLE DE BLOG ---
   ========================================================================== */
.article-layout {
	max-width: 850px;
	margin: 60px auto;
	padding: 0 20px;
}

.back-to-blog {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: var(--primary-blue);
	font-weight: 600;
	margin-bottom: 30px;
	transition: transform 0.2s;
}

.back-to-blog:hover {
	transform: translateX(-4px);
}

.article-meta {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--primary-blue);
	font-weight: 600;
	margin-bottom: 15px;
}

.article-date {
	font-size: 0.9rem;
	color: var(--text-muted);
	margin-bottom: 40px;
	display: block;
}

.article-hero-img-wrapper {
	width: 100%;
	height: 450px;
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 50px;
	box-shadow: 0 4px 25px rgba(0,0,0,0.05);
}

.article-hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.article-content {
	background-color: #ffffff;
	padding: 50px 60px;
	border-radius: 16px;
	border: 1px solid rgba(45, 74, 50, 0.05);
}

.article-content p {
	font-size: 1.05rem;
	color: #3D473A;
	margin-bottom: 25px;
}

.article-content .lead {
	font-size: 1.2rem;
	color: var(--primary-blue);
	line-height: 1.6;
	font-style: italic;
	border-left: 3px solid var(--primary-blue);
	padding-left: 20px;
	margin-bottom: 35px;
}

.article-content h2 {
	font-family: var(--font-serif);
	font-size: 1.8rem;
	color: var(--primary-blue);
	margin-top: 40px;
	margin-bottom: 20px;
	font-weight: 500;
}

.article-content ul {
	margin-bottom: 25px;
	padding-left: 20px;
}

.article-content li {
	font-size: 1.05rem;
	color: #3D473A;
	margin-bottom: 12px;
}

.slogan-box {
    margin-top: 30px;
    padding: 12px 20px;
    border-left: 3px solid #495f31;
    background-color: rgba(73, 95, 49, 0.03);
    display: inline-block;
    max-width: 85%;
}

.slogan-box p {
    margin: 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: #0E397A;
    line-height: 1.4;
}

p.explanation {
	font-size: 0.8em;
	font-style: italic;
	margin: 20px 0 20px 0;
}

/* ==========================================================================
   --- CONFIGURATION RESPONSIVE ET MODE MOBILE (MÉDIAS QUERIES) ---
   ========================================================================== */

/* --- TABLETTES & ÉCRANS INTERMÉDIAIRES (JUSQU'À 992px) --- */
@media (max-width: 992px) {
	.header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    /* On force l'apparition du bouton burger */
    .burger-menu {
        display: flex;
    }

    /* Le menu se transforme en volet coulissant masqué à droite */
    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background-color: #FAF8F5; /* Fond zen beige clair */
        box-shadow: -5px 0 15px rgba(0,0,0,0.05);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 35px;
        transition: right 0.4s ease;
        z-index: 999;
        padding: 40px 20px;
    }

    /* Classe activée par le JavaScript lors du clic sur le burger */
    .nav-wrapper.open {
        right: 0;
    }

    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 22px !important;
    }

    nav a {
        font-size: 1.15rem !important;
    }

    .btn-cta {
        margin-top: 10px;
        width: 80%;
        text-align: center;
    }

	.hero { flex-direction: column; }
	.hero-container { flex-direction: column; }
	.hero-content { width: 100%; padding: 40px 0; }
	.hero h1 { font-size: 2.2rem; }
	.hero-image-container { position: relative; width: 100%; height: 280px; mask-image: none !important; -webkit-mask-image: none !important; }

	.cards-grid { grid-template-columns: 1fr; max-width: 500px; }

	.reassurance-container {
		grid-template-columns: 1fr !important;
		gap: 25px;
	}
	.footer-container { grid-template-columns: 1fr; gap: 40px; }
}

/* --- SMARTPHONES & PETITS ÉCRANS (JUSQU'À 768px) --- */
@media (max-width: 768px) {
    header {
        padding: 5px 10px !important;
    }

    /* Compactage précis du logo Ensō et des textes pour gagner de la place */
    .brand-logo {
        height: 42px !important;
        width: auto !important;
    }

    .brand-name {
        font-size: 1.1rem !important;
    }

    .brand-name .lastname {
        margin-left: 4px;
    }

    .brand-baseline {
        font-size: 0.52rem !important;
        margin-top: 2px;
        gap: 0.4em;
    }

    .brand-baseline .orange-dot {
        font-size: 0.7rem !important;
        transform: translateY(-1px);
    }

	.credits-container {
		flex-direction: column;
		gap: 15px;
		text-align: center;
	}
	.footer-identity-inline {
		flex-direction: column;
		gap: 6px;
	}
	.credits-right-block {
		flex-direction: column;
		gap: 8px;
	}
}
