/* ===== BASE STYLE & PALETTE ===== */
:root {
    --bg-color: #fcfbfa;       /* Fond blanc cassé/crème très doux */
    --text-dark: #2c2c2c;      /* Anthracite pour une lecture confortable */
    --text-muted: #666666;     /* Gris pour les sous-titres et détails */
    --accent-color: #8fa89b;   /* Vert de gris / Sauge subtil */
    --accent-hover: #769082;
    --border-light: #e6e4e0;   /* Bordures fines et discrètes */
    --font-serif: 'Playfair Display', 'Georgia', serif;
    --font-sans: 'Montserrat', 'Helvetica Neue', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* TYPOGRAPHIE */
h1, h2, h3, .citation {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: 0.5px;
}

a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    width: 100%;
    border-bottom: 1px solid var(--border-light);
    background-color: rgba(252, 251, 250, 0.95);
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.site-title {
    text-align: center;
    margin-bottom: 15px;
}

.site-title h1 {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.site-title h3 {
    font-size: 14px;
    margin-bottom: 5px;
}

.site-title p {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-top: 5px;
}

nav ul {
    list-style: none;
    text-align: center;
    border-top: 1px solid var(--border-light);
    padding-top: 15px;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
    position: relative;
}

nav ul li a {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

nav ul li a:hover, nav ul li a.active {
    color: var(--text-dark);
    border-bottom: 1px solid var(--text-dark);
    padding-bottom: 4px;
}

/* MENU DÉROULANT */
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% - 5px);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-color);
    min-width: 240px;
    padding: 15px 0;
    list-style: none;
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    margin-top: 0;
    padding-top: 20px;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    opacity: 0;
    visibility: hidden;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    display: block;
    margin: 0 !important;
    text-align: center;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-family: var(--font-serif);
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0.5px;
}

.dropdown-menu li a:hover {
    background-color: #f4f2ee;
    color: var(--text-dark);
    border: none;
}

/* ===== BLOCS DE CONTENU ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

section {
    margin-bottom: 80px;
}

.section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: var(--text-muted);
}

/* INTRO & HERO */
.intro-box {
    text-align: center;
    margin-bottom: 60px;
}

.intro-box h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-style: italic;
}

.intro-box p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    font-family: var(--font-serif);
}

.intro-text {
    font-size: 16px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-muted);
}

/* CITATION BLOCK */
.citation-block {
    background-color: #f4f2ee;
    padding: 40px;
    border-left: 3px solid var(--accent-color);
    margin: 40px 0;
    font-style: italic;
}

.citation-block p {
    font-family: var(--font-serif);
    font-size: 18px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 10px;
}

.citation-block span {
    font-family: var(--font-sans);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* SERVICES & APPROCHES (Grille) */
.services-table {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 20px;
    margin-top: 30px;
}

.services-row {
    display: table-row;
}

.service-card {
    display: table-cell;
    width: 50%;
    background: #ffffff;
    padding: 35px;
    border: 1px solid var(--border-light);
    vertical-align: top;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-3px);
}

.service-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-sans);
    font-weight: 600;
}

.service-card .subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 15px;
}

/* INFOS PRATIQUES & TARIFS */
.info-grid {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 30px;
}

.info-column {
    display: table-cell;
    width: 50%;
    vertical-align: top;
}

.info-column h3 {
    font-family: var(--font-sans);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--text-dark);
    padding-bottom: 5px;
}

.price-item {
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--border-light);
    padding-bottom: 8px;
}

.price-name {
    font-weight: 500;
}

.price-value {
    float: right;
    font-family: var(--font-serif);
    font-weight: bold;
}

/* ===== FORMULAIRES & BOUTONS ===== */
.btn-cta {
    display: inline-block;
    background-color: var(--text-dark);
    color: #fff;
    padding: 12px 30px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-cta:hover {
    background-color: var(--accent-color);
}

.btn-submit {
    background-color: var(--text-dark);
    color: #fff;
    padding: 12px 30px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--accent-color);
}

.contact-form {
    background-color: #fff;
    padding: 40px;
    border: 1px solid var(--border-light);
}

.contact-content {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 40px;
    margin-top: 40px;
}

.contact-form {
    display: table-cell;
    width: 60%;
    vertical-align: top;
}

.contact-info {
    display: table-cell;
    width: 40%;
    vertical-align: top;
}

.contact-info h2 {
    font-size: 20px;
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    color: var(--text-muted);
}

.required {
    color: #d32f2f;
}

.form-group input, 
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-light);
    background-color: var(--bg-color);
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-dark);
}

.form-group input:focus, 
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* ===== BLOG ===== */
.blog-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-header h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.blog-header p {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-muted);
    font-size: 16px;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.blog-card {
    padding-bottom: 50px;
    border-bottom: 1px solid var(--border-light);
}

.blog-card:last-child {
    border-bottom: none;
}

.blog-meta {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 12px;
    font-weight: 500;
}

.blog-post-title {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.blog-post-title a:hover {
    color: var(--accent-color);
}

.blog-excerpt {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.blog-read-more {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.blog-read-more span {
    transition: transform 0.2s ease;
    display: inline-block;
}

.blog-read-more:hover {
    color: var(--accent-color);
}

.blog-read-more:hover span {
    transform: translateX(5px);
}

/* ===== FOOTER ===== */
footer {
    background-color: #80643c;
    color: #fcfbfa;
    text-align: center;
    padding: 60px 20px;
    font-size: 13px;
    letter-spacing: 1px;
}

footer p {
    margin-bottom: 15px;
    color: #bbb;
}

footer .footer-brand {
    font-family: var(--font-serif);
    font-size: 20px;
    color: #fff;
    margin-bottom: 20px;
}

/* BOUTON FLOTTANT */
.btn-fixed-right {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background-color: #7a6544;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-fixed-right:hover {
    background-color: #8fa89b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .service-card, .info-column {
        display: block;
        width: 100% !important;
        margin-bottom: 30px;
    }
    
    .services-table, .info-grid, .contact-content {
        display: block;
        border-spacing: 0;
    }
    
    .contact-form, .contact-info {
        display: block;
        width: 100% !important;
        margin-bottom: 30px;
    }
    
    nav ul li {
        display: block;
        margin: 10px 0;
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: #f4f2ee;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .btn-fixed-right {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 11px;
    }
    
    nav ul li {
        margin: 5px 0;
    }
}

/* Le conteneur prend toute la hauteur et largeur de l'écran */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* 100% de la hauteur de la fenêtre */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* La vidéo remplit tout l'espace sans se déformer */
.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crucial : recadre la vidéo pour remplir l'écran */
  z-index: -2;
}

/* Le filtre assombrissant (très important pour que le texte blanc soit lisible) */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Noir à 40% d'opacité (à ajuster) */
  z-index: -1;
}

/* Le texte par-dessus */
.content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white; /* Texte en blanc */
}

.content h1 {
  font-family: 'VotrePoliceSerif', serif; /* Utilisez une police élégante */
  font-size: 3rem;
  letter-spacing: 2px;
}

/* Le conteneur principal divise l'écran en 3 colonnes */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colonnes de taille égale */
  height: 80vh; /* Ajustez la hauteur selon vos besoins */
  width: 100%;
  position: relative; /* Pour positionner le bouton RDV par rapport à cette section */
}

/* Style commun à toutes les cartes */
.image-card {
  position: relative;
  background-size: cover; /* L'image remplit tout l'espace */
  background-position: center; /* Centre l'image */
  display: flex; /* Utilisation de flexbox pour centrer le texte */
  flex-direction: column;
  justify-content: center; /* Centre verticalement */
  align-items: center; /* Centre horizontalement */
  text-align: center;
}

/* On assigne les images de fond spécifiques à chaque carte */
.card-psy { background-image: url('../image1.jpg'); }
.card-art { background-image: url('../image2.jpg'); }

/* Le voile assombrissant pour lire le texte (Overlay) */
.overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.3); /* Noir à 30% d'opacité */
  z-index: 1; /* Place l'overlay au-dessus de l'image */
}

/* Le texte */
.card-content {
  position: relative;
  z-index: 2; /* Place le texte au-dessus de l'overlay */
  color: white;
  padding: 20px;
}

.card-content h2 {
  font-family: 'VotrePoliceSerif', serif;
  margin-bottom: 15px;
}

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr; /* Sur mobile, les blocs passent à 1 seule colonne (ils s'empilent) */
    height: auto; /* La hauteur s'adapte au contenu */
  }
  .image-card {
    height: 400px; /* On donne une hauteur fixe par bloc sur mobile */
  }
}

