/* ======================================================
   0. VARIABLES CSS
====================================================== */
:root {
    /* Brand */
    --asttic-marron: #7F7C69;
    --asttic-bleu:   #264F70;
    --asttic-vert:   #2FAE8F;

    /* Backgrounds */
    --bg-main: #fafafa;
    --bg-soft: #f3f5f1;
    --bg-card: #ffffff;

    /* Text */
    --text-main: #222;
    --text-muted: #555;
    --text-light: #666;

    /* UI */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --shadow-soft: 0 8px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 18px 40px rgba(0,0,0,0.15);

    --transition: 0.3s ease;
}

/* ======================================================
   1. RESET & BASE
====================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

/* ======================================================
   2. HEADER & NAVIGATION
====================================================== */
header {
    background-color: var(--asttic-marron);
    border-bottom: 1px solid #eaeaea;
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Boutons réseaux sociaux */
.social-buttons {
    display: flex;
    gap: 12px;
}

.social {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: transform 0.2s, opacity 0.2s;
}

.social:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.insta, .fb {
    background-color: var(--asttic-bleu);
}

.insta:hover,
.fb:hover {
    background-color: var(--asttic-vert);
}

/* ======================================================
   3. HERO
====================================================== */
.hero {
    background: var(--bg-soft);
    padding: 70px 20px;
    text-align: center;
}

.hero h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--asttic-bleu);
}

.hero p {
    max-width: 600px;
    margin: auto;
    font-size: 16px;
    color: var(--text-muted);
}

/* ======================================================
   4. SECTIONS
====================================================== */
.section {
    padding: 60px 40px;
}

.section h3 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 40px;
    font-weight: 500;
}

/* ======================================================
   5. BARRE DE RECHERCHE
====================================================== */
.search-bar {
    text-align: center;
    margin-bottom: 40px;
}

.search-bar input {
    padding: 10px 15px;
    width: 250px;
    max-width: 90%;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 14px;
}

/* ======================================================
   6. GRID
====================================================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* ======================================================
   7. CARTES PRESTATIONS (IMAGES CLIQUABLES)
====================================================== */
.card-bg {
    position: relative;
    height: 220px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: background var(--transition);
}

.card-bg:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card-bg:hover::before {
    background: rgba(0, 0, 0, 0.15);
}

.card-title {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    padding: 20px;
}

/* ======================================================
   8. FOOTER
====================================================== */
footer {
    background: var(--bg-card);
    border-top: 1px solid #eaeaea;
    padding: 30px;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}

/* ======================================================
   9. RESPONSIVE
====================================================== */
@media (max-width: 900px) {
    header {
        padding: 20px;
    }

    .hero h2 {
        font-size: 28px;
    }

    nav a {
        margin-left: 15px;
        font-size: 13px;
    }

    .section {
        padding: 50px 20px;
    }
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav {
        margin-top: 15px;
    }

    nav a {
        display: block;
        margin: 10px 0;
        font-size: 15px;
    }

    .hero h2 {
        font-size: 26px;
    }

    .hero p {
        font-size: 15px;
    }

    .section h3 {
        font-size: 22px;
    }

    .card-bg {
        height: 180px;
    }

    .card-title {
        font-size: 18px;
        padding: 15px;
    }

    .cta-box {
        padding: 40px 25px;
    }
	
    /* Cartes avec image */
    .card-bg {
        height: 150px; /* plus petit */
    }

    .card-title {
        font-size: 16px;
        padding: 12px;
    }

    /* Why us */
    .why-card {
        padding: 25px 20px;
        max-width: 260px;
    }

    /* Nos avantages */
    .nos-avantages-card {
        padding: 25px 20px;
        min-height: auto;
        max-width: 260px;
    }

    .effet-card {
        padding: 25px 20px;
        max-width: 260px;
    }
}


/* ======================================================
   10. Logo
====================================================== */
.logo img {
    height: 80px;
    width: auto;
    display: block;
}

/* ======================================================
   11. Bouton Réservé / CTA
====================================================== */
.cta-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 50px;
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
}

.cta-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
}

.cta-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.cta-box h3 {
    font-size: 30px;
    margin-bottom: 14px;
    font-weight: 600;
}

.cta-box p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.cta-box .btn {
    margin: 0 auto;
}

/* ======================================================
   12. BOUTONS
====================================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--asttic-vert);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
    background-color: var(--asttic-bleu);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* ======================================================
   13. WHY US
====================================================== */
.why-us {
    background-color: var(--bg-soft);
}

.why-us h2 {
    text-align: center;
    margin-bottom: 40px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    justify-items: center;
}

.why-card {
    background: var(--bg-card);
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
    width: 100%;
    max-width: 300px;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.why-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--asttic-bleu);
}

.why-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ======================================================
   14. TABLES
====================================================== */
.formule-table,
.card-table,
.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    font-size: 14px;
    margin-top: 15px;
}

.formule-table th,
.formule-table td,
.card-table th,
.card-table td,
.price-table th,
.price-table td {
    padding: 12px 16px;
    text-align: center;
}

.formule-table thead {
    background-color: #e9ede5;
}

.formule-table th {
    font-weight: 600;
}

.formule-table tbody tr:nth-child(even) {
    background-color: #f9faf7;
}

.formule-table tbody tr:hover {
    background-color: #eef2ea;
}

.card-table th {
    text-align: left;
    color: #333;
    font-weight: 600;
    width: 40%;
}

.card-table td {
    color: var(--text-muted);
}

.card-table tr:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.price-table th {
    background-color: var(--asttic-bleu);
    color: #fff;
    text-align: left;
}

.price-table td {
    border-bottom: 1px solid #e0e0e0;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:hover {
    background-color: rgba(47, 174, 143, 0.08);
}

/* ======================================================
   15. VOIR PLUS / VOIR MOINS
====================================================== */
.hidden-detail {
    display: none;
}

.toggle-btn {
    margin-top: 10px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    background-color: var(--asttic-marron);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.toggle-btn:hover {
    background-color: #666957;
}


/* ======================================================
   NOS AVANTAGES
====================================================== */
.nos-avantages {
    background-color: var(--bg-card); /* fond blanc */
    padding: 60px 40px;
}

.nos-avantages h2 {
    text-align: center;
    margin-bottom: 40px;
}

.nos-avantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* cartes un peu plus larges */
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    justify-items: center;
}

.nos-avantages-card {
    background: var(--bg-card);
    padding: 40px 35px;          /* plus d'espace à l'intérieur */
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
    width: 100%;
    max-width: 320px;            /* largeur légèrement augmentée */
    min-height: 220px;           /* hauteur minimale pour uniformité */
}

.nos-avantages-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.nos-avantages-card h4 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--asttic-bleu);
}

.nos-avantages-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}



/* ======================================================
   11. Effet de gros 
====================================================== */

.effet {
    background-color: var(--bg-soft);
}

.effet h2 {
    text-align: center;
    margin-bottom: 40px;
}

.effet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    justify-items: center;
}

.effet-card {
    background: var(--bg-card);
    padding: 35px 300px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
    width: 100%;
    max-width: 300px;
}

.effet-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.effet-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--asttic-bleu);
}

.effet-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ======================================================
   8bis. PAGES LÉGALES + FOOTER LINKS + MAP
====================================================== */
.footer-links a{
    color: var(--text-light);
    text-decoration: none;
}
.footer-links a:hover{ text-decoration: underline; }

.legal-page{
    padding: 50px 20px;
    background: var(--bg-main);
}
.legal-card{
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 28px;
    border: 1px solid #eee;
}
.legal-card h2{ margin-top:0; }
.legal-card h3{ margin: 22px 0 10px; font-size: 16px; }
.legal-muted{ color: var(--text-muted); font-size: 13.5px; line-height: 1.6; }

.map-section{
    padding: 50px 20px;
    background: var(--bg-soft);
}
.map-inner{
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 18px;
    align-items: start;
}
.map-text{
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 22px;
}
.map-text h3{ margin:0 0 10px; }
.map-text p{ margin:0 0 14px; color: var(--text-muted); }
.map-embed{
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid #eee;
}
@media (max-width: 900px){
    .map-inner{ grid-template-columns: 1fr; }
}
