/*
Theme Name: Les Toits de Bryan Child
Theme URI: https://couvreur14.com
Template: kadence
Description: Child theme custom pour Les Toits de Bryan, artisan couvreur Calvados
Author: Webkhal - Jonathane Khalfallah
Author URI: https://webkhal.com
Version: 1.0.0
Text Domain: lestoitsdebryan-child
*/

/* ==========================================================================
   1. VARIABLES CSS — Palette de la marque Les Toits de Bryan
   ========================================================================== */
:root {
    /* Couleurs principales — esprit cuivre normand */
    --color-copper: #B65A36;
    --color-copper-dark: #8F3E24;

    /* Fonds chaleureux */
    --color-cream: #FBF7EF;
    --color-cream-light: #FAF8F4;
    --color-white-warm: #FFFDF9;

    /* Textes */
    --color-charcoal: #2B2522;
    --color-taupe: #7B6F68;

    /* Accent contact */
    --color-pink: #D93678;

    /* Bordures discrètes */
    --color-border: #E8DED4;

    /* Typographies */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --container-max: 1200px;
    --container-padding: 1.25rem;
}

/* ==========================================================================
   2. RESET MINIMAL — uniformisation cross-browser
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li,
figure, blockquote {
    margin: 0;
    padding: 0;
}

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

/* ==========================================================================
   3. STYLES GLOBAUX — Mobile-first
   ========================================================================== */
body {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-charcoal);
    background-color: var(--color-cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Titres : Playfair Display, hiérarchie premium.
   overflow-wrap + hyphens : empêche un mot long (« Pont-l'Évêque »,
   « Mézidon-Canon », « Calvados ») de provoquer un overflow horizontal
   sur très petit mobile (320 px). */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-charcoal);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* Tailles type-scale fluide — clamp(min, préféré, max).
   Min calibrés pour tenir confortablement sur 320 px de viewport
   (≈ 280 px de contenu utile après padding container). */
h1 {
    font-size: clamp(1.5rem, 4.5vw + 0.8rem, 2rem);
}

h2 {
    font-size: clamp(1.3125rem, 3.5vw + 0.7rem, 1.625rem);
}

h3 {
    font-size: clamp(1.125rem, 2.4vw + 0.7rem, 1.25rem);
}

/* Filet de sécurité — empêche toute image (avec attribut width=N intrinsèque)
   de causer un overflow horizontal sur petits écrans. */
img {
    max-width: 100%;
    height: auto;
}

/* Liens : cuivre avec transition douce */
a {
    color: var(--color-copper);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--color-copper-dark);
}

/* Container central */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* ==========================================================================
   4. CLASSES HELPERS — utilitaires rapides
   ========================================================================== */
.text-center {
    text-align: center;
}

.text-copper {
    color: var(--color-copper);
}

.text-charcoal {
    color: var(--color-charcoal);
}

/* ==========================================================================
   5. BREAKPOINTS — mobile-first (min-width)
   ========================================================================== */
@media (min-width: 768px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.125rem; }
    h3 { font-size: 1.5rem; }

    :root {
        --container-padding: 2rem;
    }
}

@media (min-width: 1024px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.75rem; }
}
