/* ============================
   RESET & VARIABLES
============================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --accent: #0c3c60;
    --text-main: #1f1f1f;
    --text-soft: #5f5f5f;
    --bg-page: #f6f7f9;
    --bg-block: #ffffff;
    --max-width: 1120px;
    --radius: 16px;
    --shadow-soft: 0 10px 28px rgba(0,0,0,0.05);
}

body {
    font-family: "Inter", system-ui, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================
   STRUCTURE GLOBALE
============================ */

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ============================
   HEADER
============================ */

.site-header {
    background-color: #ffffff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 100px; /* ⚠️ taille du logo inchangée */
}

.site-nav {
    display: flex;
    gap: 22px;
}

.site-nav a {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--accent);
}

/* ============================
   SECTIONS
============================ */

.section {
    padding: 64px 20px;
}

.section--alt {
    background-color: var(--bg-block);
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ============================
   TYPOGRAPHIE
============================ */

h1 {
    font-size: 34px;
    font-weight: 600;
    margin-bottom: 14px;
}

h2 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
}

h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

p {
    font-size: 15px;
    color: var(--text-soft);
    margin-bottom: 14px;
    line-height: 1.7;
}

/* ============================
   HERO (HOME INTACTE)
============================ */

.hero {
    padding: 80px 20px 70px;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
}

.hero-tagline {
    font-size: 12px;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}

.hero p {
    max-width: 520px;
}

.hero-image img {
    border-radius: var(--radius);
    object-fit: cover;
}

/* ============================
   CARTES & GRILLES
============================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background-color: var(--bg-block);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    padding: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(0,0,0,0.08);
}

/* ============================
   BOUTONS
============================ */

.btn {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 999px;
    background-color: var(--accent);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    background-color: #072840;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: #e4ebf3;
    color: var(--accent);
}

.btn-secondary:hover {
    background-color: #d6e0ec;
}

/* ============================
   GALERIE
============================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1; /* 🔥 clé du problème */
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    background-color: var(--bg-block);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.08);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item img {
    image-rendering: auto;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* ============================
   FOOTER
============================ */

.site-footer {
    background-color: var(--accent);
    color: #ffffff;
    padding: 32px 20px;
}

.site-footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 14px;
}

.site-footer a {
    color: #cfe2f4;
    text-decoration: none;
}

/* ============================
   ANIMATION LÉGÈRE (OPTIONNELLE)
============================ */

.fade-in {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.6s ease forwards;
}

.fade-in-delay {
    animation-delay: 0.15s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================
   RESPONSIVE
============================ */

@media (max-width: 900px) {
    .site-header-inner {
        flex-direction: column;
        gap: 12px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .cards-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    h1 { font-size: 28px; }
    h2 { font-size: 23px; }

    .section {
        padding: 44px 16px;
    }
}

/* ==================================================
   INTRO ESPACES – IMAGE DISCRÈTE EN HAUT À DROITE
   (uniquement pour la page Espaces)
   ================================================== */

.intro-flex {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 36px;
  align-items: start;
}

.intro-text {
  max-width: 720px;
}

.intro-image {
  align-self: start;
}

.intro-image img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
}

/* Mobile */
@media (max-width: 768px) {
  .intro-flex {
    grid-template-columns: 1fr;
  }

  .intro-image img {
    max-height: 200px;
  }
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    z-index: 9999;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
}

/* ===== Formulaire Contact ===== */

form label {
    font-size: 0.9rem;
    color: #1f2933;
    display: block;
    margin-bottom: 4px;
}

form input,
form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d0d4dd;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.05);
}

form textarea {
    resize: vertical;
    min-height: 110px;
}

form button.btn {
    margin-top: 8px;
}
