/* ==========================================================================
   Ganivelle Châtaignier - feuille de style unique
   Design system repris du kit Elementor d'origine (couleurs, typographies,
   rayons, espacements). Préfixe de classes : gc-
   ========================================================================== */

/* ---------- Polices auto-hébergées (ex Google Fonts) ---------- */
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
    src: url('../fonts/oswald-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
    src: url('../fonts/oswald-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/poppins-400i-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/poppins-400i-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Variables (valeurs du kit Elementor 113) ---------- */
:root {
    --color-primary:    #6EA343; /* vert : accents, boutons, filets */
    --color-secondary:  #294145; /* bleu-vert sombre : titres, pied de page */
    --color-text:       #666666;
    --color-link:       #5A8890;
    --color-white:      #FFFFFF;
    --color-light:      #F9F9F9;
    --color-dark:       #101010;
    --color-bg-soft:    #F4F9F0; /* encarts vert pâle */
    --color-border:     #E3E8E0;
    --font-title:       'Oswald', 'Arial Narrow', sans-serif;
    --font-body:        'Poppins', Arial, sans-serif;
    --radius:           20px;
    --shadow:           0 4px 16px rgba(0, 0, 0, .08);
    --transition:       .3s ease;
    --container:        1140px;
    --gutter:           16px;
    --section-y:        110px;
    --h1:               60px;
    --h2:               42px;
    --h3:               30px;
    --h4:               22px;
    --h5:               20px;
    --h6:               18px;
}
@media (max-width: 1024px) {
    :root { --container: 1024px; --h1: 54px; --h2: 36px; --h3: 28px; --h4: 21px; --h5: 18px; --h6: 17px; --section-y: 80px; }
}
@media (max-width: 767px) {
    :root { --h1: 42px; --h2: 30px; --h3: 24px; --h4: 18px; --h5: 16px; --h6: 15px; --section-y: 50px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
    margin: 0;
    background: var(--color-white);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--color-link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-title); font-weight: 600; line-height: 1.22; color: var(--color-secondary); margin: 0 0 20px; }
h1 { font-size: var(--h1); text-transform: capitalize; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); color: var(--color-link); }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }
h6 { font-size: var(--h6); text-transform: capitalize; }
p { margin: 0 0 20px; }
ul, ol { margin: 0 0 20px; padding-left: 30px; }
li { margin-bottom: 4px; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: 30px 0; }
.gc-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.gc-section { padding: var(--section-y) 0; }
.gc-section--claire { background: var(--color-bg-soft); }
.gc-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gc-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--color-secondary); color: var(--color-white); padding: 10px 16px; border-radius: var(--radius); }
.gc-skip:focus { left: 8px; color: var(--color-white); }

/* ---------- Bouton ---------- */
.gc-bouton {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 500;
    line-height: 1.5;
    padding: 12px 20px;
    border-radius: var(--radius);
    transition: background var(--transition), box-shadow var(--transition);
}
.gc-bouton:hover, .gc-bouton:focus-visible { background: var(--color-secondary); color: var(--color-white); box-shadow: 0 0 0 4px rgba(255, 255, 255, .1); }

/* ---------- En-tête ---------- */
.gc-header { background: var(--color-white); position: relative; z-index: 10; }
.gc-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 15px; padding-bottom: 15px; }
.gc-logo { display: inline-flex; line-height: 0; }
.gc-logo img { width: 300px; max-width: 100%; height: auto; }
@media (max-width: 767px) {
    .gc-header__inner { padding-top: 10px; padding-bottom: 10px; }
    .gc-logo img { width: 190px; }
}

/* ---------- Bandeau (hero) ---------- */
.gc-hero {
    position: relative;
    background: var(--color-dark) url('../images/ganivelle-bois-chataignier-1-1000.webp') center center / cover no-repeat;
    padding: 130px 0 140px;
    text-align: center;
    color: var(--color-light);
}
@media (min-width: 801px) { .gc-hero { background-image: url('../images/ganivelle-bois-chataignier-1-1600.webp'); } }
.gc-hero::before { content: ''; position: absolute; inset: 0; background: var(--color-dark); opacity: .5; }
.gc-hero__inner { position: relative; }
.gc-hero__titre { color: var(--color-white); text-shadow: 0 0 10px rgba(0, 0, 0, .3); margin: 31px 31px 10px; }
.gc-hero__sous-titre { color: var(--color-light); margin: 0 auto; max-width: 900px; }
.gc-hero--article { padding: 80px 0 90px; }
.gc-hero__titre--article { font-size: var(--h2); text-transform: none; margin: 10px auto 15px; max-width: 960px; }
@media (max-width: 767px) {
    .gc-hero { padding: 110px 0 90px; }
    .gc-hero__titre { margin: 0 0 10px; }
    .gc-hero--article { padding: 50px 0 60px; }
}

/* ---------- Accueil : grille principale + colonne latérale ---------- */
.gc-accueil__grille { display: grid; grid-template-columns: minmax(0, 65fr) minmax(0, 35fr); gap: 20px; align-items: start; }
@media (max-width: 1024px) { .gc-accueil__grille { grid-template-columns: minmax(0, 1fr); } }

/* Cartes d'articles */
.gc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin-bottom: 30px; }
.gc-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
@media (max-width: 1024px) { .gc-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .gc-cards, .gc-cards--3 { grid-template-columns: minmax(0, 1fr); } }
.gc-card { display: flex; flex-direction: column; background: var(--color-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); }
.gc-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0, 0, 0, .12); }
.gc-card__image { display: block; line-height: 0; }
.gc-card__image img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.gc-card__texte { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.gc-card__titre { font-size: var(--h4); margin: 0 0 12px; }
.gc-card__titre a { color: var(--color-secondary); }
.gc-card__titre a:hover { color: var(--color-primary); }
.gc-card__extrait { margin: 0; flex: 1; }

/* Bannière partenaire */
.gc-banniere { margin: 0; line-height: 0; }
.gc-banniere img { width: 100%; height: auto; border-radius: var(--radius); }

/* Encarts latéraux (À propos, Articles récents) */
.gc-encart {
    background: var(--color-bg-soft);
    border-bottom: 3px solid var(--color-primary);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
}
.gc-encart__titre { font-size: var(--h4); text-align: center; margin: 0 0 10px; padding-bottom: 10px; position: relative; }
.gc-encart__titre::after { content: ''; display: block; width: 20%; margin: 10px auto 0; border-top: 2px solid var(--color-primary); }
@media (max-width: 767px) { .gc-encart { padding: 20px; } }

/* Bloc auteur */
.gc-auteur { text-align: center; }
.gc-auteur__avatar { display: block; width: 120px; height: auto; margin: 10px auto 15px; }
.gc-auteur__nom { font-family: var(--font-title); font-weight: 600; font-size: var(--h5); color: var(--color-secondary); margin: 0 0 10px; }
.gc-auteur__texte p:last-child { margin-bottom: 0; }
.gc-article__auteur { margin-top: 50px; }
.gc-article__auteur .gc-auteur { display: flex; align-items: center; gap: 24px; text-align: left; }
.gc-article__auteur .gc-auteur__avatar { margin: 0; flex: 0 0 100px; width: 100px; }
@media (max-width: 767px) { .gc-article__auteur .gc-auteur { flex-direction: column; text-align: center; } }

/* Liste des articles récents */

/* Motif de feuilles (séparateur) */
.gc-motif {
    height: 31.3px;
    margin: 0 0 54px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid meet' overflow='visible' height='100%25' viewBox='0 0 117 26' fill='%236EA343' stroke='none'%3E%3Cpath d='M3,1.5C5,4.9,6,8.8,6,13s-1.7,8.1-5,11.5C0.3,21.1,0,17.2,0,13S1,4.9,3,1.5z M16,1.5c2,3.4,3,7.3,3,11.5s-1,8.1-3,11.5c-2-4.1-3-8.3-3-12.5S14,4.3,16,1.5z M29,1.5c2,4.8,3,9.3,3,13.5s-1,7.4-3,9.5c-2-3.4-3-7.3-3-11.5S27,4.9,29,1.5z M41.1,1.5C43.7,4.9,45,8.8,45,13s-1,8.1-3,11.5c-2-3.4-3-7.3-3-11.5S39.7,4.9,41.1,1.5zM55,1.5c2,2.8,3,6.3,3,10.5s-1.3,8.4-4,12.5c-1.3-3.4-2-7.3-2-11.5S53,4.9,55,1.5z M68,1.5c2,3.4,3,7.3,3,11.5s-0.7,8.1-2,11.5c-2.7-4.8-4-9.3-4-13.5S66,3.6,68,1.5z M82,1.5c1.3,4.8,2,9.3,2,13.5s-1,7.4-3,9.5c-2-3.4-3-7.3-3-11.5S79.3,4.9,82,1.5z M94,1.5c2,3.4,3,7.3,3,11.5s-1.3,8.1-4,11.5c-1.3-1.4-2-4.3-2-8.5S92,6.9,94,1.5z M107,1.5c2,2.1,3,5.3,3,9.5s-0.7,8.7-2,13.5c-2.7-3.4-4-7.3-4-11.5S105,4.9,107,1.5z'/%3E%3C/svg%3E") left center / auto 100% repeat-x;
}
.gc-guide { padding-top: 0; }

/* ---------- Contenu rédactionnel ---------- */
.gc-prose > :last-child { margin-bottom: 0; }
.gc-prose--etroit { max-width: 860px; }
.gc-prose a { text-decoration: underline; text-decoration-color: rgba(90, 136, 144, .4); text-underline-offset: 3px; }
.gc-prose a:hover { text-decoration-color: currentColor; }
.gc-prose img { border-radius: var(--radius); }
.gc-prose .gc-align-center, .gc-prose .gc-align-none { display: block; margin: 0 auto 20px; }
.gc-prose .gc-align-right { float: right; margin: 0 0 20px 25px; }
.gc-prose .gc-align-left { float: left; margin: 0 25px 20px 0; }
.gc-prose h2, .gc-prose h3 { clear: both; }
.gc-prose h2 { margin-top: 40px; }
.gc-prose h3 { margin-top: 30px; }
.gc-prose h2:first-child, .gc-prose h3:first-child { margin-top: 0; }
@media (max-width: 600px) {
    .gc-prose .gc-align-right, .gc-prose .gc-align-left { float: none; display: block; margin: 0 auto 20px; }
}
.gc-prose .gc-figure { margin: 0 auto 20px; max-width: 800px; text-align: center; }
.gc-prose .gc-figure img { display: block; margin: 0 auto; }
.gc-prose figcaption { font-size: 13px; color: #8a8a8a; margin-top: 8px; }
.gc-table { overflow-x: auto; margin: 0 0 20px; -webkit-overflow-scrolling: touch; }
.gc-prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gc-prose th, .gc-prose td { border: 1px solid #d9dfd6; padding: 10px 12px; vertical-align: top; text-align: left; }
.gc-prose th { background: var(--color-bg-soft); color: var(--color-secondary); font-weight: 600; }
.gc-prose td ul, .gc-prose td ol { margin: 0; padding-left: 18px; }
.gc-prose tbody tr:nth-child(even) { background: #fafbf8; }
.gc-encadre { background: var(--color-bg-soft); border-radius: 19px; padding: 20px 24px; margin: 0 0 30px; }
.gc-encadre > :last-child { margin-bottom: 0; }
.gc-article__image { margin: 0 auto 50px; max-width: 800px; text-align: center; line-height: 0; }
.gc-article__image img { border-radius: var(--radius); width: 100%; height: auto; }
.gc-article .gc-encart__titre { margin-bottom: 20px; }
.gc-section--claire .gc-encart__titre { margin-bottom: 40px; }

/* ---------- Pied de page ---------- */
.gc-footer { background: var(--color-secondary); color: var(--color-light); padding: 60px 0 30px; }
.gc-footer a { color: var(--color-white); }
.gc-footer a:hover { color: var(--color-primary); }
.gc-footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.gc-footer__logo { display: inline-flex; line-height: 0; }
.gc-footer__logo img { width: 400px; max-width: 100%; height: auto; }
.gc-footer__tagline { margin: 0; font-size: 16px; line-height: 1.5; }
.gc-footer__rule { border-top: 1px solid rgba(255, 255, 255, .2); margin: 40px 0 25px; }
.gc-footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.gc-footer__bottom p { margin: 0; }
.gc-lien-masque { margin: 0; }
.gc-lien-masque button { padding: 0; border: 0; background: none; font: inherit; color: var(--color-white); cursor: pointer; }
.gc-lien-masque button:hover, .gc-lien-masque button:focus-visible { color: var(--color-primary); }
@media (max-width: 767px) {
    .gc-footer { padding: 40px 0 25px; }
    .gc-footer__top { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .gc-footer__logo img { width: 280px; }
    .gc-footer__bottom { justify-content: center; text-align: center; }
}

/* ---------- Impression ---------- */
@media print {
    .gc-header, .gc-footer, .gc-hero::before, .gc-section--claire, .gc-banniere { display: none; }
    .gc-hero { background: none; color: #000; padding: 0; }
    .gc-hero__titre { color: #000; text-shadow: none; }
    body { color: #000; }
}
