/* ===================================
   DTEC PUNAISE - STYLES PRINCIPAUX
   Fichier CSS unique pour tout le site
   =================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs principales */
    --bleu-marine: #1a3a52;
    --bleu-marine-clair: #2c5a78;
    --vert-menthe: #4a9b7f;
    --vert-menthe-fonce: #3d8468;
    --terracotta: #d4896f;
    --terracotta-fonce: #c27860;
    
    /* Couleurs neutres */
    --blanc-casse: #fafaf8;
    --gris-clair: #e8e8e8;
    --gris-moyen: #666;
    --gris-fonce: #2d3436;
    
    /* Typographie */
    --font-principale: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Espacements */
    --espacement-section: 5rem;
    --espacement-conteneur: 20px;
    
    /* Transitions */
    --transition-rapide: 0.3s ease;
    --transition-lente: 0.6s ease-out;
}

body {
    font-family: var(--font-principale);
    color: var(--gris-fonce);
    line-height: 1.6;
    background-color: var(--blanc-casse);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--espacement-conteneur);
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

header {
    background: linear-gradient(135deg, var(--bleu-marine) 0%, var(--bleu-marine-clair) 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo::before {
    content: "🔍";
    font-size: 1.8rem;
}

.nav-logo {
    height: 60px;
    width: auto;
    background: white;
    padding: 5px 12px;
    border-radius: 8px;
    transition: var(--transition-rapide);
    box-shadow: 0 1px 6px rgba(0,0,0,0.12);
}

.nav-logo:hover {
    transform: scale(1.03);
    box-shadow: 0 3px 12px rgba(0,0,0,0.18);
}

/* Empêcher la barre verte active sur le lien du logo */
nav a:has(.nav-logo),
nav a:has(.nav-logo).active {
    border-bottom: none !important;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    transition: var(--transition-rapide);
    font-weight: 500;
}

nav a:hover {
    color: var(--vert-menthe);
}

nav a.active {
    color: var(--vert-menthe);
    border-bottom: 2px solid var(--vert-menthe);
}

.btn-contact,
nav a.btn-contact.active {
    background: var(--vert-menthe);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    transition: var(--transition-rapide);
    font-weight: 600;
    border-bottom: none;
}

.btn-contact:hover {
    background: var(--vert-menthe-fonce);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(74, 155, 127, 0.3);
}

/* Menu hamburger mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    transition: var(--transition-rapide);
}

.menu-toggle:hover,
.menu-toggle:active {
    background: rgba(255, 255, 255, 0.1);
}

/* ===================================
   SECTIONS COMMUNES
   =================================== */

section {
    padding: var(--espacement-section) 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--bleu-marine);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--vert-menthe);
    border-radius: 2px;
}

/* ===================================
   BOUTONS
   =================================== */

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-rapide);
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.btn-primary {
    background: var(--vert-menthe);
    color: white;
}

.btn-primary:hover {
    background: var(--vert-menthe-fonce);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 155, 127, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--bleu-marine);
}

.btn-small {
    padding: 0.7rem 1.8rem;
    font-size: 0.95rem;
}

/* ===================================
   HERO SECTIONS
   =================================== */

.hero {
    background: linear-gradient(rgba(26, 58, 82, 0.85), rgba(26, 58, 82, 0.85)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%231a3a52" width="1200" height="600"/><circle fill="%234a9b7f" opacity="0.1" cx="200" cy="150" r="100"/><circle fill="%23d4896f" opacity="0.1" cx="900" cy="400" r="150"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0 5rem;
    text-align: center;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--blanc-casse));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero version simple (pages internes) */
.hero-simple {
    padding: 4rem 0 3rem;
    min-height: 250px;
}

.hero-simple h1 {
    font-size: 2.5rem;
}

/* ===================================
   CARTES (SERVICES, CHIENS, ETC.)
   =================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-rapide);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--gris-clair);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    color: var(--bleu-marine);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--gris-moyen);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

/* ===================================
   GRILLES 2 COLONNES
   =================================== */

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-2col-inverse {
    grid-template-columns: 1fr 1fr;
}

.grid-2col img,
.placeholder-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(74, 155, 127, 0.3);
}

.placeholder-image {
    background: linear-gradient(135deg, var(--vert-menthe) 0%, var(--vert-menthe-fonce) 100%);
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    padding: 2rem;
}

/* ===================================
   LISTE À PUCES STYLISÉE
   =================================== */

.liste-style {
    list-style: none;
    padding: 0;
}

.liste-style li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
}

.liste-style li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--vert-menthe);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===================================
   CITATIONS
   =================================== */

.quote-section {
    background: linear-gradient(135deg, var(--bleu-marine) 0%, var(--bleu-marine-clair) 100%);
    padding: 4rem 0;
    color: white;
}

.quote {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.quote-icon {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.quote-text {
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.quote-author {
    font-size: 1.1rem;
    font-weight: 600;
}

.quote-title {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ===================================
   STATISTIQUES
   =================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--vert-menthe);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--gris-moyen);
    font-weight: 500;
}


/* ===================================
   FAQ
   =================================== */

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--bleu-marine);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--vert-menthe);
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    content: '\2212';
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--gris-moyen);
    line-height: 1.7;
}

.faq-answer p {
    margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: var(--vert-menthe);
    text-decoration: underline;
}

/* ===================================
   FORMULAIRES
   =================================== */

.formulaire {
    max-width: 700px;
    margin: 3rem auto;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--bleu-marine);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--gris-clair);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-principale);
    transition: var(--transition-rapide);
}

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

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    color: var(--gris-moyen);
    font-size: 0.85rem;
}

/* ===================================
   ENCADRÉS / CALLOUT
   =================================== */

.callout {
    background: #f0f7f4;
    border-left: 4px solid var(--vert-menthe);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.callout-warning {
    background: #fff3e0;
    border-left-color: var(--terracotta);
}

.callout h4 {
    color: var(--bleu-marine);
    margin-bottom: 0.5rem;
}

/* ===================================
   WIDGET SOS FLOTTANT
   =================================== */

.sos-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--terracotta);
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(212, 137, 111, 0.4);
    z-index: 999;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-rapide);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sos-widget:hover {
    background: var(--terracotta-fonce);
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(212, 137, 111, 0.5);
}

/* ===================================
   FOOTER
   =================================== */

footer {
    background: var(--bleu-marine);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--vert-menthe);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--vert-menthe);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===================================
   BADGES
   =================================== */

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.badge-new {
    background: var(--terracotta);
    color: white;
}

.badge-info {
    background: var(--vert-menthe);
    color: white;
}

/* ===================================
   PRIX / TARIFS
   =================================== */

.prix-box {
    background: linear-gradient(135deg, var(--vert-menthe) 0%, var(--vert-menthe-fonce) 100%);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-align: center;
    margin: 0 auto;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(74, 155, 127, 0.3);
}

.prix-montant {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.prix-detail {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
}

/* ===================================
   GALERIE PUNAISES (page punaise)
   =================================== */

.punaise-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.punaise-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    aspect-ratio: 4/3;
}

.punaise-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.punaise-gallery-item:hover img {
    transform: scale(1.08);
}

.punaise-gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 58, 82, 0.85), transparent);
    color: white;
    padding: 2rem 1rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.punaise-gallery-credit {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--gris-moyen);
    font-style: italic;
}

/* ===================================
   PHOTOS CHIENS (page equipe)
   =================================== */

.card .chien-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.card .chien-photo-memorial {
    height: 280px;
}

/* ===================================
   FICHES THEMATIQUES (page punaise)
   =================================== */

.info-card {
    background: white;
    border-radius: 15px;
    margin-bottom: 1.25rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--gris-clair);
    overflow: hidden;
    transition: box-shadow var(--transition-rapide);
}

.info-card[open] {
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.info-card-summary {
    padding: 1.75rem 2rem;
    cursor: pointer;
    list-style: none;
    display: grid;
    grid-template-columns: 4rem 1fr 2rem;
    align-items: center;
    gap: 1.5rem;
    transition: background var(--transition-rapide);
}

.info-card-summary::-webkit-details-marker { display: none; }

.info-card-summary:hover {
    background: #f8faf9;
}

.info-card[open] .info-card-summary {
    border-bottom: 1px solid var(--gris-clair);
    background: #f0f7f4;
}

.info-card-icon {
    font-size: 2.5rem;
    text-align: center;
    line-height: 1;
}

.info-card-header h3 {
    color: var(--bleu-marine);
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
}

.info-card-header p {
    color: var(--gris-moyen);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.info-card-toggle {
    color: var(--vert-menthe);
    font-size: 1.8rem;
    font-weight: 300;
    text-align: center;
    line-height: 1;
    user-select: none;
}

.info-card:not([open]) .info-card-toggle::before { content: '+'; }
.info-card[open] .info-card-toggle::before { content: '−'; }

.info-card-body {
    padding: 1.75rem 2rem;
}

.info-card-body h4 {
    color: var(--bleu-marine);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.05rem;
}

.info-card-body h4:first-child {
    margin-top: 0;
}

.info-card-body p {
    color: var(--gris-moyen);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.info-card-body p:last-child {
    margin-bottom: 0;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    :root {
        --espacement-section: 3rem;
    }
    
    /* Header mobile */
    nav {
        flex-wrap: wrap;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0;
        margin-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.35s ease;
        margin-top: 0;
    }

    nav ul.active {
        display: flex;
        max-height: 500px;
        opacity: 1;
        margin-top: 0.75rem;
    }

    .menu-toggle {
        display: block;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul a {
        display: block;
        padding: 0.9rem 1rem;
        border-radius: 8px;
        transition: background 0.2s ease;
        font-size: 1.05rem;
    }

    nav ul a:active,
    nav ul a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    nav ul a.active {
        border-bottom: none;
        background: rgba(74, 155, 127, 0.15);
        color: var(--vert-menthe);
    }

    nav ul .btn-contact {
        display: block;
        text-align: center;
        margin: 0.75rem 1rem;
        padding: 0.9rem 1.5rem;
        border-radius: 25px;
        font-size: 1.05rem;
    }
    
    /* Hero */
    .hero {
        padding: 4rem 0 4rem;
    }

    .hero::after {
        height: 40px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-simple h1 {
        font-size: 1.8rem;
    }
    
    /* Sections */
    .section-title {
        font-size: 2rem;
    }
    
    /* Grilles */
    .grid-2col,
    .grid-2col-inverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cards-grid,
    .cards-grid-3,
    .cards-grid-2 {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }
    
    .punaise-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .punaise-gallery-item {
        aspect-ratio: 16/9;
    }

    .nav-logo {
        height: 55px;
        padding: 5px 10px;
    }

    .info-card-summary {
        grid-template-columns: 3rem 1fr 1.5rem;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
    }

    .info-card-icon {
        font-size: 2rem;
    }

    .info-card-header h3 {
        font-size: 1.1rem;
    }

    .info-card-body {
        padding: 1.25rem 1.5rem;
    }
    
    /* SOS Widget */
    .sos-widget {
        bottom: 20px;
        right: 20px;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Formulaire */
    .formulaire {
        padding: 2rem 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp var(--transition-lente);
}


/* Classe pour animations au scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-lente);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   UTILITAIRES
   =================================== */

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

.bg-white {
    background: white;
}

.bg-light {
    background: #f8f9fa;
}
