/* --- Variables pour les couleurs et typographies --- */
:root {
    --primary-color: #53e4b1; /* Vert Écume des Mers - Couleur principale */
    --secondary-color: #18faaf; /* Vert Écume des Mers clair - Nuance secondaire */
    --accent-color: #f4ff77; /* Or vif - Pour les accents, boutons (s'harmonise bien avec le vert) */
    --text-color-dark: #333333; /* Remplacé par un gris foncé pour la lisibilité sur fond clair */
    --text-color-light: #ffffff; /* Texte blanc pour les sections sombres */
    --bg-light: #f8f8f8; /* Arrière-plan clair général */
    --bg-dark: #2F4F4F; /* Vert Forêt Sombre - Pour le footer, s'harmonise bien */
    --summer-light: #ADD8E6; /* Bleu ciel clair - Alternative pour dégradés si le vert ne suffit pas */
    --summer-accent: #87CEEB; /* Bleu ciel - Alternative pour dégradés */
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
    --border-radius-soft: 8px;
    --spacing-xl: 100px;
    --spacing-large: 60px;
    --spacing-medium: 40px;
    --spacing-small: 20px;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* --- Styles Généraux --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-small);
}

/* Modification importante ici : max-width par défaut à 100% */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Boutons Génériques --- */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color-dark);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px var(--shadow-medium);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #ffe656;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn-small {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-small:hover {
    background-color: #17ff51;
    transform: translateY(-2px);
}

/* --- En-têtes (h1, h2, etc.) --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-small);
    color: var(--primary-color);
    line-height: 1.2;
}

h1 { font-size: 3.5em; }
h2 { font-size: 2.5em; }
h3 { font-size: 1.8em; }

/* Styles pour les titres de section */
.axes-principaux h2,
.temoignages h2,
.cta-contact h2 {
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: var(--spacing-large);
}

.axes-principaux h2::after,
.temoignages h2::after,
.cta-contact h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Header --- */
header {
    background-color: var(--text-color-light);
    padding: var(--spacing-small) 0;
    box-shadow: 0 2px 10px var(--shadow-light);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 60px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-medium);
}

nav ul li a {
    color: #000000;
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

/* --- Section Héro --- */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color-light);
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4em;
    margin-bottom: var(--spacing-small);
    background: linear-gradient(to right, #ff6464, #ff9c3e, #ffff5c, #73ff73, #56a2ff, #9501ff, #ff3cce);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ff0000;
    text-shadow: none;
}

.hero p {
    font-size: 1.5em;
    max-width: 900px;
    margin: 0 auto var(--spacing-medium);
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Styles pour les formes du Hero */
.hero-shape {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    filter: blur(5px);
    animation: float 20s infinite ease-in-out alternate;
    z-index: 1;
}

.hero-shape-1 { top: 10%; left: 5%; width: 80px; height: 80px; animation-delay: 0s; }
.hero-shape-2 { top: 20%; right: 15%; width: 120px; height: 120px; animation-delay: 2s; }
.hero-shape-3 { bottom: 5%; left: 20%; width: 60px; height: 60px; animation-delay: 4s; }
.hero-shape-4 { bottom: 30%; right: 5%; width: 90px; height: 90px; animation-delay: 6s; }
.hero-shape-5 { top: 5%; right: 40%; width: 50px; height: 50px; animation-delay: 8s; }
.hero-shape-6 { bottom: 15%; left: 45%; width: 70px; height: 70px; animation-delay: 10s; }
.hero-shape-7 { top: 40%; left: 2%; width: 85px; height: 85px; animation-delay: 12s; }
.hero-shape-8 { top: 60%; right: 10%; width: 100px; height: 100px; animation-delay: 14s; }
.hero-shape-9 { bottom: 25%; left: 60%; width: 40px; height: 40px; animation-delay: 16s; }
.hero-shape-10 { top: 15%; left: 30%; width: 75px; height: 75px; animation-delay: 18s; }

/* Keyframes pour l'animation de flottaison */
@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* --- Section Axes Principaux --- */
.axes-principaux {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
    text-align: center;
}

.axes-principaux .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-medium);
}

.axe-item {
    background-color: var(--text-color-light);
    border-radius: var(--border-radius-soft);
    box-shadow: 0 5px 20px var(--shadow-light);
    padding: var(--spacing-medium);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.axe-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

/* Styles par défaut pour les images des axe-item (pour toutes sauf la boutique si spécifié) */
.axe-item img {
    width: 100%;
    height: 256px; /* HAUTEUR PAR DÉFAUT MISE À JOUR POUR LES AUTRES CARTES AXE-ITEM */
    object-fit: cover;
    border-radius: var(--border-radius-soft);
    margin-bottom: var(--spacing-small);
}

/* Styles SPÉCIFIQUES pour l'image de la carte BOUTIQUE */
.axe-item-boutique img {
    height: 285px; /* Hauteur spécifique pour la boutique */
    max-width: 58%; /* Largeur spécifique pour la boutique */
    margin: 0 auto; /* Centre l'image horizontalement */
}


.axe-item h3 {
    color: var(--primary-color);
    font-size: 1.6em;
    margin-bottom: 10px;
}

.axe-item p {
    font-size: 1em;
    color: var(--text-color-dark);
    margin-bottom: var(--spacing-small);
    flex-grow: 1;
}

.axe-item .btn-small {
    margin-top: auto;
}

.card-full-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Empêcher le survol du lien plein d'interférer avec le bouton */
.axe-item .btn-small {
    z-index: 2;
    position: relative;
}

/* --- Section Nouvelles Sections (Blog) --- */
.new-sections-container {
    padding: var(--spacing-xl) 0;
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    text-align: center;
}

.new-sections-container .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-card.blog-card {
    background-color: var(--text-color-light);
    border-radius: var(--border-radius-soft);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    max-width: 900px;
    transition: transform 0.3s ease;
}

.section-card.blog-card:hover {
    transform: translateY(-10px);
}

.blog-card .card-content {
    padding: var(--spacing-medium);
    text-align: left;
    color: var(--text-color-dark);
}

.blog-card .card-content h2 {
    color: var(--primary-color);
    font-size: 2.2em;
    margin-bottom: var(--spacing-small);
}

.blog-card .card-content p {
    margin-bottom: var(--spacing-small);
}

.blog-card .card-image {
    flex-shrink: 0;
}

/* Styles pour l'image du blog (valeurs mobiles/tablettes par défaut) */
.blog-card .card-image img {
    width: 100%;
    height: 100px; /* Hauteur spécifique pour l'image du blog */
    object-fit: contain; /* MODIFICATION ICI : Pour "dézoomer" l'image */
}


/* --- Section Témoignages --- */
.temoignages {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
    text-align: center;
}

.temoin-card {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-radius: var(--border-radius-soft);
    padding: var(--spacing-medium);
    margin: 0 auto;
    max-width: 800px;
    box-shadow: 0 8px 20px var(--shadow-medium);
    font-style: italic;
    position: relative;
    transition: transform 0.3s ease;
}

.temoin-card:hover {
    transform: translateY(-5px);
}

.temoin-card p {
    font-size: 1.3em;
    margin-bottom: 15px;
    quotes: "“" "”" "‘" "’";
}

.temoin-card p::before {
    content: open-quote;
    font-size: 2em;
    line-height: 0.1em;
    margin-right: 0.1em;
    vertical-align: -0.4em;
    color: var(--accent-color);
}

.temoin-card p::after {
    content: close-quote;
    font-size: 2em;
    line-height: 0.1em;
    margin-left: 0.1em;
    vertical-align: -0.4em;
    color: var(--accent-color);
}

.temoin-card span {
    display: block;
    font-weight: 600;
    text-align: right;
    font-style: normal;
    color: var(--accent-color);
}

/* --- Section CTA Contact (Call to Action) --- */
.cta-contact {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: var(--spacing-large) 0;
    text-align: center;
    margin-top: var(--spacing-xl);
}

.cta-contact h2 {
    color: var(--text-color-light);
}

.cta-contact p {
    font-size: 1.2em;
    margin-bottom: var(--spacing-medium);
}

/* --- Footer --- */
footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-medium) 0;
    text-align: center;
    font-size: 0.9em;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer p {
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: var(--spacing-small);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* --- Media Queries (Adaptation Responsive) --- */

/* Pour les écrans plus grands (desktop) */
@media (min-width: 1025px) {
    .axe-item:nth-child(5) {
        grid-column: span 2;
    }

    .axes-principaux .container {
        justify-items: center;
    }

    .section-card.blog-card {
        flex-direction: row;
    }

    .blog-card .card-image {
        width: 40%;
        height: auto;
    }

    .blog-card .card-content {
        width: 60%;
    }

    .blog-card .card-image img {
        height: 100%;
        object-fit: contain; /* Applique aussi pour le desktop */
    }
}

/* Votre CSS existant pour les écrans plus petits (tablettes et mobiles) */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3em;
    }

    .hero p {
        font-size: 1.3em;
    }

    .axes-principaux .container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .axe-item:nth-child(5) {
        grid-column: span 1;
    }

    .section-card.blog-card {
        flex-direction: column;
        max-width: 600px;
    }
    .blog-card .card-image img {
        height: 200px;
        object-fit: contain; /* Applique aussi pour les tablettes/mobiles */
    }
}

/* Pour les écrans plus petits que 768px (smartphones) */
@media (max-width: 768px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.5em; }

    .hero {
        padding: var(--spacing-large) 0;
        min-height: 500px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.1em;
    }

    header .container {
        flex-direction: column;
        align-items: center;
    }

    header nav {
        margin-top: var(--spacing-small);
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .axes-principaux .container {
        grid-template-columns: 1fr;
    }

    .axe-item {
        margin-bottom: var(--spacing-small);
    }

    .section-card.blog-card {
        flex-direction: column;
    }

    .temoin-card {
        padding: var(--spacing-small);
        font-size: 0.9em;
    }

    .temoin-card p {
        font-size: 1.1em;
    }

    .cta-contact p {
        font-size: 1em;
    }

    footer .container {
        text-align: center;
    }
}

/* --- Animations (Optionnel mais sympa !) --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Appliquer des animations à certaines sections */
.axes-principaux,
.new-sections-container,
.temoignages,
.cta-contact {
    animation: fadeIn 1s ease-out;
}