/*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/

@import "./css/Front-page.css";

/* ===========================
   Style des roots (variables pour les couleurs)
   =========================== */
:root {
    /* Taille de base */
    font-size: 16px;

    /* Couleurs */
    --color-primary: #4D6A80;
    /* Hover btn */
    --color-btn-Hover: #0D3E80;
    /* bleu */
    --color-secondary: #4D6A80;
    /* orange */
    --color-h1: #1A1A1A;
    /* titre principal */
    --color-body: #444;
    /* texte principal */
    --color-black: #1A1A1A;
    /* texte principal */
    --main-gradient: linear-gradient(89.87deg, var(--color-black), var(--color-secondary));

    /* Polices */
    --font-title: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Taille et graisses */
    --font-size-body: 1rem;
    --font-size-icon: 1.375rem;
    --font-size-h1: 2rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;

    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

/* ===========================
   Style général
   =========================== */
* {
    box-sizing: border-box;
}

.site-content {
    background-color: white;
}

body {
    overflow-x: hidden;
    font-family: var(--font-body);
    color: var(--color-body);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    background-color: #fff;
}

h1,
h2 {
    font-family: var(--font-title);
    color: var(--color-h1);
    font-weight: var(--font-weight-semibold);
}

h1 {
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-semibold);
}

h2 {
    margin-bottom: 1.25rem;
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-semibold);
}

h3 {
    font-family: var(--font-title);
    color: var(--color-h1);
    font-weight: var(--font-weight-regular);
}

/* ===========================
   Style Header et footer
   =========================== */
@media (max-width: 921px) {

    .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-item>.menu-link,
    .ast-builder-menu-mobile .main-navigation .inline-on-mobile .menu-item.current-menu-item>.ast-menu-toggle,
    .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-ancestor>.menu-link,
    .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-ancestor>.ast-menu-toggle {
        color: var(--color-primary);
    }
}

.ahfb-svg-iconset svg {
    fill: white !important;
}

.ahfb-svg-iconset svg:hover {
    fill: var(--color-btn-Hover) !important;
}

#ast-scroll-top {
    color: var(--color-primary);
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.ast-primary-header-bar {
    background: var(--main-gradient);
    border-bottom: 3px solid #4D6A80;
}

.ast-builder-menu-1 .menu-item>.menu-link {
    line-height: 1.6em;
    color: white;
    font-weight: var(--font-weight-medium);
}

.ast-builder-menu-1 .menu-item>.menu-link:hover {
    line-height: 1.6em;

    text-decoration: underline;
}

.ast-builder-menu-1 .menu-item.current-menu-item>.menu-link,
.ast-builder-menu-1 .inline-on-mobile .menu-item.current-menu-item>.ast-menu-toggle,
.ast-builder-menu-1 .current-menu-ancestor>.menu-link {
    line-height: 1.6em;
    color: white;
}

/* ===========================
   Style des pages produit
   =========================== */

.produit-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3.75rem;
}

.produit-wrapper>.section-galerie+.section-galerie {
    margin-top: -3.75rem;
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Galerie responsive */

.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.product-gallery img {
    width: 100%;
    height: auto;
    display: block;
}


/* Section intro */
.intro-text .description p {
    margin-bottom: 0;
}

.section-intro {
    margin-top: 3.75rem;
}

.section-intro .intro-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-intro .intro-text h1 {
    font-size: 2rem;
    margin-bottom: .5rem;
}

.section-intro .intro-text .categorie {
    margin-bottom: 0;
    color: var(--color-body);
}

.section-intro .intro-text .description {
    margin-top: 0.5rem;
    line-height: 1.4;
    color: var(--color-body);
}

/* Image responsive */
.section-intro .intro-image {
    flex: 0 0 auto;
    /* La div ne prend que l’espace nécessaire à son contenu */
    text-align: right;
}


/* Desktop */
@media (min-width: 768px) {
    .section-intro .intro-content {
        flex-direction: row;
        gap: 2.625rem;
    }

    .section-intro .intro-text {
        flex: 1;
    }

    .section-intro .intro-image {
        flex: 0 0 auto;
        /* La div ne prend que l’espace nécessaire à son contenu */
        text-align: right;
    }

    /* Image */
    .section-intro .intro-image img {
        width: 100%;
        /* occupe 100% de la div */
        max-width: 400px;
        /* limite la taille max (ajuste selon ton besoin) */
        height: auto;
        /* garde le ratio */
        border-radius: 8px;
    }
}

/*---------
 Section icones - mobile first
 ---------- */

/* Section avec fond gris pleine largeur */
.bg-gris {
    background-color: #eee;
    /* ton gris */
    width: 100vw;
    /* pleine largeur viewport */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.row-icones {
    display: flex;
    flex-direction: column;
    /* mobile : icones empilées */
    align-items: center;
    gap: 1rem;
    /* espace entre les icones */
    padding: 2.5rem 0;
}

.icone-item {
    text-align: center;

}

.icone-item img {
    width: 72px;
    /* max width */
    color: var(--color-primary);
    height: auto;
    display: block;
    margin: 0 auto 1rem;
}

/* Sous-titre */
.icone-item p {
    line-height: 1.2;
    margin: 0;
    color: var(--color-black);
}

/* Tablette et desktop */
@media (min-width: 768px) {
    .row-icones {
        flex-direction: row;
        /* icones alignées horizontalement */
        justify-content: space-evenly;
        flex-wrap: wrap;
    }

    .icone-item img {
        width: 72px;
        /* on peut garder 72px max */
    }

    .icone-item p {
        font-size: var(--font-size-icon);
        font-weight: var(--font-weight-medium);
    }
}

@media (min-width: 1024px) {
    .row-icones {
        gap: 2rem;
    }

    .icone-item img {
        width: 72px;
        /* on peut éventuellement augmenter si tu veux */
    }
}


/* ===========================
Section img-left text right
=========================== */

.section-img-left-text-right {
    padding-bottom: 3.75rem;
}

.section-text li::marker {
    color: var(--color-primary);
}

.section-img-left-text-right .section-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Desktop */
@media (min-width: 768px) {
    .section-img-left-text-right .section-inner {
        flex-direction: row;
        align-items: center;
        gap: 2.625rem;
    }

    .section-img-left-text-right .section-text {
        flex: 1;
    }

    .section-text h2 {
        font-size: var(--font-size-h2);
    }

    .section-img-left-text-right .section-image {
        flex: 1;
    }
}

.section-img-left-text-right .section-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/*-----------------------------
SECTION : Découvrez également
------------------------------*/

.decouvrez-egalement {
    position: relative;
    width: 100%;
    background: #eee;
    padding: 60px 0;
    margin: 0;
}

.decouvrez-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* TITRE */
.decouvrez-left {
    text-align: center;
}

.decouvrez-left h2 {
    font-size: var(--font-size-h2);
    margin: 0;
}

/* CAROUSEL + FLECHES */
.decouvrez-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.decouvrez-arrows {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.decouvrez-arrows button {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-h1);
    padding: 0.25rem;
    transition: opacity 0.2s ease;
}

.decouvrez-arrows button:hover {
    opacity: 0.6;
}

/* CARROUSEL */
.decouvrez-grid {
    overflow: hidden;
    width: 100%;
}

.decouvrez-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.produit-item {
    flex: 0 0 100%;
    margin-right: 1rem;
    border-radius: 8px;
}

.produit-item:last-child {
    margin-right: 0;
}

.produit-item a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.produit-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.produit-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease-in-out;
}

.produit-item:hover .produit-thumb img {
    transform: scale(1.3);
}

.produit-item h3 {
    font-size: 1rem;
    margin: 0.375rem 0;
}

/*--------------------------
Responsive
---------------------------*/

/* TABLETTE — 2 items visibles */
@media (min-width: 768px) {
    .decouvrez-layout {
        gap: 3rem;
    }

    .produit-item {
        flex: 0 0 calc(50% - 1rem);
    }
}

/* DESKTOP — structure horizontale + 4 items */
@media (min-width: 1200px) {
    .decouvrez-layout {
        flex-direction: row;
        align-items: flex-start;
    }

    .decouvrez-left {
        flex: 0 0 280px;
        text-align: left;
        display: flex;
        align-items: center;
    }

    .decouvrez-right {
        flex: 1;
    }

    .produit-item {
        flex: 0 0 186px;
        margin-right: 50px;
    }
}