/* ========================================
   STYLES COMPLETS AUTONOMES POUR GARANTIES.HTML
   Fusion de styles-garanties.css + classes nécessaires de styles-index.css
   Date: 18/01/2026
======================================== */

/* Variables CSS (depuis styles-index.css) */
:root {
    /* Couleurs principales */
    --color-primary: #ee7f08;
    --color-primary-light: #ff9b2d;
    --color-primary-dark: #d66f00;
    --color-text-dark: #2d2d2d;
    --color-text-medium: #5a5a5a;
    --color-white: #ffffff;
    --color-background: #fafafa;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 15px 50px rgba(0, 0, 0, 0.12);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.3s ease;
    --spacing-xs: 0.75rem;
    --spacing-sm: 1.5rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 8rem;
    --spacing-card: clamp(2rem, 4vw, 3rem);
    --spacing-gap: clamp(1.5rem, 3vw, 2.5rem);
    --max-width: 1200px;
}

/* Reset minimal */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Conteneur principal (depuis styles-index.css) */
main {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text-dark);
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* ============================================
   SECTIONS ENCADRÉES (depuis styles-index.css)
   ============================================ */
.section-encadré {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--color-white);
    margin-bottom: var(--spacing-xl);
}

.section-non-encadré {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md) var(--spacing-xl);
    background: #f5f7fa;
    margin-bottom: var(--spacing-xl);
}

/* Fil d'Ariane */
.breadcrumb {
    padding: 1.25rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--color-text-medium);
    border-bottom: 1px solid rgba(238, 127, 8, 0.1);
}

.breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.65rem;
    color: #bbb;
    font-weight: 300;
}

.breadcrumb-current {
    color: var(--color-text-dark);
    font-weight: 600;
}

/* Responsive breadcrumb */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 1rem 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
    }
    
    .breadcrumb-separator {
        margin: 0 0.4rem;
    }
}

/* Titres H1 / Page Title (depuis styles-index.css) */
h1, .page-title {
    color: var(--color-text-dark);
    font-family: 'Comfortaa', sans-serif;
    text-align: center;
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: var(--spacing-sm);
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h1::after, .page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* Titres h2 (depuis styles-index.css) */
h2 {
    font-family: 'Comfortaa', sans-serif;
    font-size: clamp(1.75rem, 3vw + 1rem, 3rem);
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

/* Effet zoom (depuis styles-index.css) */
.zoom {
    transition: transform var(--transition-medium);
    display: inline-block;
}

.zoom:hover {
    transform: scale(1.05);
}

/* ============================================
   TIMELINE CONTAINER
   ============================================ */
.timeline-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 40px 0;
    padding: 30px 20px;
    background: #fafafa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* Axe temporel */
.timeline-axis {
    position: relative;
    margin-bottom: 50px;
    padding: 0;
    height: 60px;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
}

.timeline-axis::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ee7f08 0%, #757776 100%);
}

.timeline-marker {
    position: absolute;
    text-align: center;
    z-index: 2;
    transform: translateX(-50%);
}

/* Positionnement exact de chaque marqueur */
.timeline-marker.start {
    left: 0;
    transform: translateX(0);
}

.timeline-marker.reception {
    left: 25%;
}

.timeline-marker.year1 {
    left: 50%;
}

.timeline-marker.year2 {
    left: 75%;
}

.timeline-marker.year10 {
    right: 0;
    left: auto;
    transform: translateX(0);
}

.marker-dot {
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid #ee7f08;
    border-radius: 50%;
    margin: 0 auto 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.timeline-marker.reception .marker-dot {
    width: 24px;
    height: 24px;
    border-width: 5px;
    background: #ee7f08;
}

.marker-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2d2d2d;
    white-space: nowrap;
}

/* ============================================
   BARRES DE GARANTIES
   ============================================ */
.garanties-bars {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1;
}

.garantie-bar {
    position: relative;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.garantie-bar:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.garantie-label {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Timeline proportions avec 5 marqueurs espacés uniformément */
/* Garantie livraison - Début travaux (0%) à Réception (25%) */
.garantie-livraison {
    background: linear-gradient(90deg, #ee7f08 0%, #ff9b2d 100%);
    width: 25%;
    margin-left: 0;
}

/* Garantie parfait achèvement - Réception (25%) à +1 an (50%) */
.garantie-parfait {
    background: linear-gradient(90deg, #d66f00 0%, #ee7f08 100%);
    width: 25%;
    margin-left: 25%;
}

/* Garantie biennale - Réception (25%) à +2 ans (75%) */
.garantie-biennale {
    background: linear-gradient(90deg, #a85600 0%, #d66f00 100%);
    width: 50%;
    margin-left: 25%;
}

/* Garantie décennale - Réception (25%) à +10 ans (100%) */
.garantie-decennale {
    background: linear-gradient(90deg, #8b4500 0%, #a85600 100%);
    width: 75%;
    margin-left: 25%;
}

/* Assurance dommages-ouvrage - Réception (25%) à +10 ans (100%) */
.garantie-dommages {
    background: linear-gradient(90deg, #757776 0%, #5a5a5a 100%);
    width: 75%;
    margin-left: 25%;
}

/* ============================================
   SECTION INTRO AVEC IMAGE
   ============================================ */
.garanties-intro {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin: 20px 0 30px 0;
}

.garanties-image-link {
    flex-shrink: 0;
}

.image-float {
    width: 150px;
    height: auto;
    border-radius: 8px;
}

.garanties-intro h3 {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d2d2d;
    margin: 0;
    font-weight: 500;
    text-align: justify;
}

/* ============================================
   TEXTE GARANTIES
   ============================================ */
.texte-garanties {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.garantie-item {
    padding: 20px 25px;
    background: linear-gradient(135deg, #fff5ed 0%, #ffffff 100%);
    border-left: 4px solid #ee7f08;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    scroll-margin-top: 100px;
}

.garantie-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(238, 127, 8, 0.15);
}

.garantie-item h4 {
    color: #ee7f08;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.garantie-item p {
    color: #5a5a5a;
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}

/* ============================================
   RESPONSIVE - TABLETTE (900px+)
   Depuis styles-index.css
   ============================================ */
@media (min-width: 900px) {
    main {
        padding: 0 var(--spacing-lg);
        max-width: 800px;
        margin: 0 auto;
    }
    
    .section-encadré {
        padding: var(--spacing-card);
        max-height: none;
    }
}

/* ============================================
   RESPONSIVE - DESKTOP (1200px+)
   Depuis styles-index.css
   ============================================ */
@media (min-width: 1200px) {
    main {
        padding: 0 var(--spacing-xl);
        max-width: var(--max-width);
    }
    
    .section-encadré {
        padding: var(--spacing-xl);
    }
}

/* ============================================
   RESPONSIVE - GRAND ÉCRAN (1440px+)
   Depuis styles-index.css
   ============================================ */
@media (min-width: 1440px) {
    main {
        max-width: 1400px;
        padding: 0 4rem;
    }
}

/* ============================================
   RESPONSIVE - TRÈS GRAND ÉCRAN (1600px+)
   Depuis styles-index.css
   ============================================ */
@media (min-width: 1600px) {
    main {
        max-width: 1600px;
    }
}

/* ============================================
   RESPONSIVE - TABLETTE 1105px
   ============================================ */
@media (max-width: 1105px) {
    .timeline-container {
        display: none !important;
    }
}

/* ============================================
   RESPONSIVE - TABLETTE 990px
   ============================================ */
@media (max-width: 990px) {
    .image-float {
        display: none;      
    }
}

/* ============================================
   RESPONSIVE - MOBILE 768px
   ============================================ */
@media (max-width: 768px) {
    .garanties-intro {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .image-float {
        width: 120px;
        margin: 0 auto;
        display: block;
    }
    
    .garanties-intro h3 {
        text-align: center;
        font-size: 1rem;
    }
    
    .garantie-item {
        padding: 15px 20px;
    }
    
    .garantie-item h4 {
        font-size: 1rem;
    }
    
    /* Optimisation mobile */
    .garantie-bar {
        transition: none !important;
    }
    
    .garantie-item {
        content-visibility: auto;
        contain-intrinsic-size: auto 150px;
    }
    
    .timeline-container {
        content-visibility: auto;
    }
}

/* ============================================
   RESPONSIVE - SMARTPHONES < 600px
   Depuis styles-index.css
   ============================================ */
@media (max-width: 599px) {
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
    }
    
    main {
        padding: 0 var(--spacing-sm);
    }
    
    .section-encadré {
        padding: var(--spacing-sm) var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
}

/* Focus visible pour accessibilité */
*:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}
