/* ====================================
   Variables CSS - Palette de couleurs
   ==================================== */
:root {
    --blanc-casse: #FAFAF7;
    --beige-sable: #E8DCCB;
    --marron-doux: #6B4F3B;
    --gris-fonce: #333333;
    --vert-sauge: #8FA68E;
    
    --font-titres: 'Playfair Display', serif;
    --font-texte: 'Open Sans', sans-serif;
}

/* ====================================
   Reset et styles de base
   ==================================== */
html {
    scroll-behavior: smooth;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-texte);
    color: var(--gris-fonce);
    background-color: var(--blanc-casse);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titres);
    color: var(--marron-doux);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ====================================
   Boutons
   ==================================== */
.btn {
    display: inline-block;
    padding: 14px 30px;
    background-color: var(--vert-sauge);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: #78956f;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: var(--marron-doux);
}

.btn-secondary:hover {
    background-color: #5a4030;
}

/* ====================================
   Header Navigation
   ==================================== */
header {
    height: 120px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 90px;
    width: auto;
    display: block;
}

.nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding-top: 12px;
    padding-bottom: 0;
}

.site-name {
    font-family: var(--font-titres);
    font-size: 2.8rem;
    color: var(--marron-doux);
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu li a {
    color: var(--gris-fonce);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #4a7c3f;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--marron-doux);
    transition: all 0.3s ease;
}

/* ====================================
   Hero Section
   ==================================== */
.hero {
    height: 70vh;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    margin-top: 120px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    padding: 120px 20px;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ====================================
   Sections communes
   ==================================== */
.section {
    padding: 100px 40px;
}

.section-beige {
    background-color: var(--beige-sable);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

/* ====================================
   Grilles
   ==================================== */
.grid {
    display: grid;
    gap: 40px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* ====================================
   Cartes
   ==================================== */
.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-text {
    color: #666;
    margin-bottom: 15px;
}

.card-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* ====================================
   Disposition Texte-Image
   ==================================== */
.text-image-section {
    display: flex;
    gap: 60px;
    align-items: center;
}

.text-image-section.reverse {
    flex-direction: row-reverse;
}

.text-content,
.image-content {
    flex: 1;
}

.text-content p {
    margin-bottom: 1.4em;
}

.image-content img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ====================================
   Footer
   ==================================== */
footer {
    background-color: var(--beige-sable);
    padding: 60px 40px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-column p,
.footer-column ul {
    color: var(--gris-fonce);
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a:hover {
    color: var(--vert-sauge);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #d0c4b0;
    color: #666;
}

.footer-bottom a {
    color: var(--marron-doux);
    margin: 0 10px;
}

/* ====================================
   Formulaire Contact
   ==================================== */
.contact-section {
    display: flex;
    gap: 60px;
}

.contact-form,
.contact-info {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--marron-doux);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-texte);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--vert-sauge);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info-item {
    margin-bottom: 25px;
    display: flex;
    align-items: start;
    gap: 15px;
}

.contact-info-item i {
    color: var(--vert-sauge);
    font-size: 1.5rem;
}

.map-container {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
}

/* ====================================
   Galerie Photos
   ==================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* ====================================
   Page Article Blog
   ==================================== */
.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px;
    border-radius: 10px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    margin: 30px 0;
    border-radius: 10px;
}

/* ====================================
   Fiche Chien
   ==================================== */
.chien-header {
    display: flex;
    gap: 60px;
    margin-bottom: 60px;
}

.chien-photo {
    flex: 1;
}

.chien-photo img {
    width: 100%;
    border-radius: 10px;
}

/* Carrousel chien */
.chien-carousel {
    flex: 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.carousel-track-wrapper {
    overflow: hidden;
    border-radius: 10px;
}

.carousel-track {
    display: flex;
    transition: transform 0.45s ease;
    align-items: flex-start;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.carousel-slide img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 520px;
    border-radius: 10px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: white;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.75);
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 2;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
    background: white;
    transform: scale(1.25);
}

.carousel-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 4;
    transition: background 0.2s, transform 0.2s;
    pointer-events: all;
}
.carousel-play-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}
.portee-video-slide {
    position: relative;
}

.chiot-age-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 3;
    pointer-events: none;
    letter-spacing: 0.03em;
}

.chien-info {
    flex: 1;
}

.info-row {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.info-label {
    font-weight: 600;
    color: var(--marron-doux);
    width: 150px;
}

.info-value {
    color: var(--gris-fonce);
}

/* ====================================
   Vidéos chien
   ==================================== */
.chien-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.chien-video-item video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    background: #000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ====================================
   Liste Portées
   ==================================== */
.portee-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.portee-status {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
}

.status-disponible {
    background-color: #d4edda;
    color: #155724;
}

.status-reserve {
    background-color: #fff3cd;
    color: #856404;
}

/* ====================================
   Messages Flash
   ==================================== */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ====================================
   Responsive Mobile
   ==================================== */
@media (max-width: 768px) {
    .section {
        padding: 40px 20px;
    }
    
    .header-container {
        padding: 0 20px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 120px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .header-container .btn {
        display: none;
    }

    .site-name {
        font-size: 1.7rem;
        display: block;
        max-width: calc(100vw - 120px);
        line-height: 1.4;
        text-align: center;
    }

    .site-name-prefix {
        display: block;
    }

    .site-name-suffix {
        display: block;
        font-size: 1.15rem;
        white-space: nowrap;
    }
    
    .hero {
        height: 56.25vw; /* Ratio 16:9 */
        min-height: 200px;
        max-height: 400px;
        background-size: 170% auto;
        background-position: center center;
    }

    .hero h1 {
        font-size: 1.2rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .text-image-section,
    .text-image-section.reverse {
        flex-direction: column;
    }

    .text-image-section.elevage-pourquoi {
        flex-direction: column-reverse;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-section {
        flex-direction: column;
    }
    
    .chien-header {
        flex-direction: column;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
}

/* ====================================
   Utilitaires
   ==================================== */
.text-center {
    text-align: center;
}

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

/* ====================================
   Section Actualités mise en avant
   ==================================== */
.section-beige .section-title {
    position: relative;
    padding-bottom: 20px;
}

.section-beige .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--vert-sauge), var(--marron-doux));
    border-radius: 2px;
}

/* Mise en avant des cartes d'articles sur l'accueil */
.section-beige .card {
    border-top: 4px solid var(--vert-sauge);
    transition: all 0.3s ease;
}

.section-beige .card:hover {
    border-top-color: var(--marron-doux);
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.section-beige .card .card-date {
    color: var(--vert-sauge);
    font-weight: 600;
}
