/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    /* Palette de couleurs du brief */
    --color-primary: #ee719e;   /* Rose vif (Boutons, accents) */
    --color-secondary: #f9d3e0; /* Rose pâle (Fonds secondaires) */
    --color-bg: #f4eee6;        /* Crème (Fond principal) */
    --color-text: #2b2140;      /* Violet foncé (Texte) */
    --color-white: #ffffff;

    /* Polices (à importer via Google Fonts dans le HTML) */
    --font-heading: 'Cormorant Garamond', serif; /* Élégant pour les titres */
    --font-body: 'Lato', sans-serif; /* Lisible pour le texte */

    --header-height: 90px;
    --border-radius: 12px; /* Coins arrondis doux */
}

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

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; margin-bottom: 1.5rem; color: var(--color-primary); }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--border-radius);}

/* Utilitaires */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Ces 20px empêchent tout le contenu de toucher les bords de l'écran */
}
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.bg-white { background-color: var(--color-white); }
.bg-secondary { background-color: var(--color-secondary); }

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 2px solid var(--color-primary);
}

.btn:hover {
    background-color: transparent;
    color: var(--color-primary);
}

/* =========================================
   HEADER & NAVIGATION (Style Novaline épuré)
   ========================================= */
.main-header {
    height: var(--header-height); /* 90px */
    background-color: var(--color-white);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(43, 33, 64, 0.05);
    /* Supprimez overflow: hidden ici pour l'instant */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%; /* Force le conteneur à faire 90px */
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;  /* On bride la hauteur du lien à 80px */
    width: 80px;   /* On bride la largeur pour faire un carré */
    overflow: hidden; /* ICI on coupe tout ce qui dépasse du carré */
}

.logo-img {
    height: 100% !important; /* L'image remplit les 80px du lien */
    width: 100% !important;
    object-fit: cover; /* Elle se centre et se recadre toute seule */
    border-radius: 0; /* On enlève les arrondis pour le test */
}

.main-nav ul {
    display: flex;
    gap: 40px;
}

.main-nav a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
}

/* Effet souligné au survol style Novaline */
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-cta {
    margin-left: 40px;
}

/* =========================================
   PAGE : ACCUEIL
   ========================================= */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    /* Placeholder pour l'image Midjourney 1 */
    background-image: url('../img/massage-bien-etre-relaxation-dijon.webp');
    background-size: cover;
    background-position: center;
}

.hero::before {
    /* Voile rosé pour adoucir l'image et faire ressortir le texte */
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(244, 238, 230, 0.4); /* Teinte crème transparente */
}

.hero-content {
    position: relative;
    max-width: 600px;
}

.hero h1 { margin-bottom: 20px; color: var(--color-text); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; }

/* Section Services Intro */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(238, 113, 158, 0.1);
}

.service-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.service-icon { font-size: 3rem; color: var(--color-primary); margin-bottom: 20px; }

/* =========================================
   PAGE : SOINS & TARIFS
   ========================================= */
.soin-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

/* Inverse l'ordre image/texte un bloc sur deux */
.soin-block.reversed .soin-text { order: 2; }
.soin-block.reversed .soin-img { order: 1; }

.soin-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    box-shadow: 10px 10px 0px var(--color-secondary); /* Effet graphique décalé */
}

.pricing-table {
    margin-top: 30px;
    background: var(--color-white);
    padding: 20px;
    border-radius: var(--border-radius);
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px dashed var(--color-secondary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
}
.price-row:last-child { border-bottom: none; }
.price { font-weight: 700; color: var(--color-primary); }

/* =========================================
   PAGE : CONTACT
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-box {
    background: var(--color-secondary);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-item { margin-bottom: 25px; }
.contact-item h3 { color: var(--color-primary); margin-bottom: 5px; }

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
}
.contact-form textarea { resize: vertical; height: 120px; }


/* =========================================
   FOOTER
   ========================================= */
footer {
    background: var(--color-text);
    color: var(--color-bg);
    padding: 60px 0 20px;
    text-align: center;
}

footer h3 { color: var(--color-primary); }
footer p { margin-bottom: 20px; }

/* ================================
   HAMBURGER + MENU MOBILE
   ================================ */

/* Desktop : hamburger caché */
.nav-toggle{
  display: none;
}

/* Style des 3 barres (commun) */
.nav-toggle .bar{
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  margin: 5px 0;
}

/* Mobile */
@media (max-width: 900px){

  /* Bouton hamburger */
  .nav-toggle{
    display: inline-flex;
    flex-direction: column;      /* ✅ empile les barres */
    align-items: center;
    justify-content: center;
    gap: 6px;                    /* ✅ espace entre les barres */

    width: 44px;
    height: 44px;

    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;

    cursor: pointer;

    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;

    position: relative;
    z-index: 10000;
  }
  .nav-toggle .bar{
    display: block;
    width: 24px;                 /* ajuste si tu veux plus long */
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    margin: 0;                   /* ✅ important : on laisse gap gérer */
  }

  /* Cache la nav + CTA en mobile par défaut */
  .main-nav{ display: none; }
  .header-cta{ display: none; }

  /* Menu ouvert */
  .main-nav.is-open{
    display: block;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;

    background: var(--color-white);
    padding: 18px 20px;

    box-shadow: 0 10px 30px rgba(43, 33, 64, 0.12);
    z-index: 9999;
  }

  /* Important : pour positionner le menu sous le header */
  .nav-container{ position: relative; }

  .main-nav.is-open ul{
  flex-direction: column;
  gap: 18px;

  align-items: center;      /* ✅ centre les items horizontalement */
  text-align: center;       /* ✅ centre le texte */
}
}
/* =========================================
   RESPONSIVE MOBILE GLOBAL
   ========================================= */
@media (max-width: 900px){

  /* Marges générales */
  .container{
    padding: 0 16px;
  }

  .section-padding{
    padding: 50px 0;
  }

  /* Titres */
  h1{ font-size: 2.1rem; }
  h2{ font-size: 1.8rem; }
  h3{ font-size: 1.3rem; }

  /* HERO */
  .hero{
    height: auto;
    min-height: 70vh;
    padding: 60px 0;
  }

  .hero-content{
    max-width: 100%;
  }

  .hero p{
    font-size: 1.05rem;
  }

  /* =====================
     SERVICES (accueil)
     ===================== */
  .services-grid{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* =====================
     SOINS (page tarifs)
     ===================== */
  .soin-block{
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 60px;
  }

  /* Supprime l’alternance gauche/droite en mobile */
  .soin-block.reversed .soin-text{ order: 2; }
  .soin-block.reversed .soin-img{ order: 1; }

  .soin-img img{
    height: 300px;
    box-shadow: 6px 6px 0px var(--color-secondary);
  }

  /* Tableau prix plus compact */
  .pricing-table{
    padding: 16px;
  }

  .price-row{
    font-size: 1.05rem;
    padding: 12px 0;
  }

  /* =====================
     CONTACT
     ===================== */
  .contact-grid{
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .contact-info-box{
    padding: 25px;
  }

  .contact-form input,
  .contact-form textarea{
    padding: 14px;
  }

  /* Boutons pleine largeur (plus mobile-friendly) */
  .btn{
    width: 100%;
    text-align: center;
  }

}


