/**
 * La Malle Cévenole - Stylesheet Principal
 * Design inspiré du patrimoine cévenol: pierre, bois, authenticité
 * Site expertise objets d'art, collection et mobilier de créateur
 */

/* ========================================
   VARIABLES & RESET
   ======================================== */

:root {
    /* Couleurs inspirées des Cévennes */
    --primary: #8B6F47;        /* Brun châtaigne */
    --primary-dark: #5D4A2F;   
    --primary-light: #B89968;  
    --secondary: #2C4A3E;      /* Vert schiste */
    --secondary-dark: #1A2E25;
    --accent: #C17A4A;         /* Terre cuite */
    --accent-light: #D9976D;
    
    /* Neutres */
    --stone-light: #F5F1E8;    /* Pierre calcaire */
    --stone: #E8DFD0;
    --stone-dark: #C9BFA8;
    --text-dark: #2A2521;
    --text-medium: #5A5550;
    --text-light: #8A857F;
    
    /* Typographie */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    /* Espacements */
    --container-width: 1200px;
    --section-padding: 80px;
    --gap-lg: 48px;
    --gap-md: 32px;
    --gap-sm: 16px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--stone-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* ========================================
   UTILITIES
   ======================================== */

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

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

.btn-cta {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: white;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(139, 111, 71, 0.3);
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-cta:hover::before {
    left: 0;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 111, 71, 0.4);
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--secondary);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.header-contacts {
    display: flex;
    gap: 32px;
    align-items: center;
}

.header-phone,
.header-email {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    opacity: 0.95;
}

.header-phone:hover,
.header-email:hover {
    opacity: 1;
    color: var(--accent-light);
}

.header-main {
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo-text {
    font-family: var(--font-serif);
    font-weight: 700;
}

.logo-main {
    display: block;
    font-size: 32px;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    display: block;
    font-size: 13px;
    color: var(--text-medium);
    font-weight: 400;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Submenu */
.has-submenu {
    position: relative;
}

.has-submenu > .nav-link {
    cursor: pointer;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 240px;
    padding: 16px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    padding: 0;
}

.submenu a {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
}

.submenu a:hover {
    background: var(--stone-light);
    color: var(--primary);
    padding-left: 32px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(44, 74, 62, 0.95) 0%, rgba(93, 74, 47, 0.9) 100%),
                url('../images/hero-bg.jpg') center/cover no-repeat;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.95;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-secondary {
    padding: 14px 32px;
    background: transparent;
    border: 2px solid white;
    color: white;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

/* Button Group Alignment */
.button-group {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.button-group .btn-cta,
.button-group .btn-secondary {
    margin: 0;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.section-description {
    font-size: 18px;
    color: var(--text-medium);
    line-height: 1.7;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--gap-md);
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 28px;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.card-text {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-link:hover {
    gap: 12px;
    color: var(--primary);
}

/* ========================================
   FEATURES
   ======================================== */

.features {
    background: var(--secondary);
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--gap-lg);
}

.feature {
    text-align: center;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature:hover .feature-icon {
    background: var(--accent);
    transform: scale(1.1);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-text {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.6;
}

/* ========================================
   FORM STYLES
   ======================================== */

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.form-label.required::after {
    content: ' *';
    color: var(--accent);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--stone-dark);
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-dark);
    background: white;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

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

.form-file {
    padding: 12px;
    border: 2px dashed var(--stone-dark);
    border-radius: 4px;
    background: var(--stone-light);
    cursor: pointer;
    transition: var(--transition);
}

.form-file:hover {
    border-color: var(--primary);
    background: white;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-light);
}

.form-error {
    color: #D32F2F;
    font-size: 13px;
    margin-top: 6px;
}

.form-success {
    padding: 16px;
    background: #4CAF50;
    color: white;
    border-radius: 4px;
    margin-bottom: 24px;
    text-align: center;
}

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

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --gap-lg: 32px;
    }
    
    .header-top {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    
    .nav-item {
        border-bottom: 1px solid var(--stone);
    }
    
    .nav-link {
        display: block;
        padding: 16px 0;
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--stone-light);
        margin-top: 8px;
        display: none;
    }
    
    .has-submenu.active .submenu {
        display: block;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .button-group .btn-cta,
    .button-group .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

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

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

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

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

.site-footer {
    background: var(--secondary-dark);
    color: white;
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--gap-lg);
}

.footer-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-light);
}

.footer-text {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 16px;
}

.footer-certif {
    font-size: 13px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    opacity: 0.9;
    display: inline-block;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-light);
    padding-left: 8px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.7;
}

.footer-hours {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-hours h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--accent-light);
}

.footer-hours p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 6px;
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    opacity: 0.8;
}

.footer-legal {
    display: flex;
    list-style: none;
    gap: 24px;
}

.footer-legal a:hover {
    color: var(--accent-light);
}
/*
Alignement des deux boutons sur index.php
*/
.cta-row{
  display:flex;
  align-items:center;     /* aligne verticalement */
  justify-content:flex-start;
  gap:16px;               /* espace entre boutons */
  flex-wrap:wrap;         /* passe à la ligne si écran étroit */
}

.cta-row a{
  display:inline-flex;    /* garantit une hauteur cohérente */
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}

/* optionnel : uniformiser la hauteur si vos 2 classes diffèrent */
.btn-cta, .btn-secondary{
  min-height:44px;
  padding:12px 18px;      /* adaptez à votre design */
  line-height:1;
}