/* ==========================================================================
   HEADER SEARCH DROPDOWN
   ========================================================================== */
.site-search-wrapper {
    position: relative;
}

.search-toggle-btn {
    background: transparent;
    border: none;
    color: var(--color-ink);
    cursor: pointer;
    border-radius: 9999px;
}

.header-search-form-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-line);
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--dur-base, 300ms) var(--ease-editorial, ease);
    z-index: 1050;
}

.header-search-form-dropdown.gf-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-search-form-dropdown input[type="search"] {
    background-color: var(--color-bg);
    border: 1px solid var(--color-line-strong);
    padding: 0.5rem 0.75rem;
}

.header-search-form-dropdown input[type="search"]:focus {
    border-color: var(--color-ink);
}

@media (max-width: 639px) {
    .header-search-form-dropdown {
        width: 280px;
        right: -50px;
    }
}

/* Custom styling. */


.font-500 {
  font-weight: 500;
}

.font-600 {
  font-weight: 600;
}

.font-700 {
  font-weight: 700;
}

.text-2xl {
    font-size: 1.55rem;
    line-height: 2rem;
}

.text-loop {
   font-size: 15px;
   color: var(--color-ink-muted);
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.site-nav {
  border-bottom: 1px solid var(--color-line);
}

.blog-details-thumb-caption, .blog-details-thumb-caption a,
.wp-element-caption, .wp-element-caption a {
  display: block;
  unicode-bidi: isolate;
  font-size: 14px;
  font-family: var(--font-sans);
  margin-top: 10px;
}

.entry-content  p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 92px;
  line-height: .82;
  padding-right: 14px;
  padding-top: 10px;
  margin-bottom: -10px;
  color: #000;
}

.prose-editorial h2, .prose-editorial h3, .prose-editorial h4 {
  font-weight: 600;
}


.prose-editorial h3 {
  font-size: 27px;
  padding-bottom: 15px;
}

/* Article single — lecture mobile */
@media (max-width: 749px) {
    .prose-editorial {
        font-size: 21px;
        line-height: 1.7;
    }
}

.gf-tag-single {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .375rem .75rem;
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    color: #000;
}

// Probleme des captions dans Single
/* 1. Force l'écartement global de l'élément figure/image */
main article.prose-editorial .wp-block-image,
main article.prose-editorial figure {
    display: block !important;
    margin-top: 3.5rem !important;
    margin-bottom: 2.5rem !important;
}

/* 2. Empêche l'image de pousser la légende trop bas */
main article.prose-editorial .wp-block-image img,
main article.prose-editorial figure img {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: block !important;
    width: 100% !important;
}

/* 3. Style et espace de la légende */
main article.prose-editorial .wp-block-image figcaption,
main article.prose-editorial figure figcaption,
main article.prose-editorial .wp-element-caption {
    margin-top: 0.625rem !important; /* Espace léger entre l'image et sa légende */
    margin-bottom: 0 !important;
    font-size: 0.875rem !important;
    color: #6b7280 !important;
    line-height: 1.4 !important;
}

/* 4. Force le paragraphe qui vient APRÈS l'image à descendre */
main article.prose-editorial .wp-block-image + p,
main article.prose-editorial figure + p {
    margin-top: 2rem !important;
}

/* 5. Force le texte AVANT l'image à garder son espace */
main article.prose-editorial p + .wp-block-image,
main article.prose-editorial p + figure {
    margin-top: 2.5rem !important;
}

/* --- REGLE DE LARGEUR POUR LES DROPDOWNS MENU --- */

/* --- STRUCTURE COMMUNE À TOUS LES MEGA-MENUS --- */
.has-mega {
    position: relative !important;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-bg, #ffffff);
    border: 1px solid var(--color-line, #e5e5e5);
    border-radius: 0.375rem;
    z-index: 50;
    white-space: nowrap;
}

/* --- LARGEURS SUR-MESURE PAR RUBRIQUE --- */

/* Montres : 8 éléments -> Largeur confortable */
.mega-menu.mega-montres {
    width: 500px !important;
}

/* Style : 6 éléments -> Largeur plus compacte */
.mega-menu.mega-style {
    width: 200px !important;
}

/* Exemple pour une future rubrique Moteurs avec beaucoup d'éléments */
.mega-menu.mega-moteurs {
    width: 320px !important;
}


/* --- SÉCURITÉ RESPONSIVE GÉNÉRALE SINGLE --- */
.entry-content img, 
.entry-content iframe, 
.entry-content video, 
.entry-content figure {
    max-width: 100% !important;
    height: auto !important;
}

.prose-editorial h2

/* --- RÈGLES SPÉCIFIQUES SINGLE SUR IPHONE / MOBILE (Écrans < 768px) --- */
@media (max-width: 767px) {
    .entry-content img,
    .entry-content figure img {
        width: 100% !important;
        aspect-ratio: 4 / 3 !important; /* Image plus haute uniquement sur mobile */
        object-fit: cover !important;  /* Empêche toute déformation */
    }
}


/* ==========================================================================
   BOUTONS GUTENBERG DANS SINGLE
   ========================================================================== */

.wp-block-button__link {
    background-color: #2c3035 !important;
    color: #ffffff !important;
    font-family: var(--sans);
    font-size: 1rem !important;
    padding: 1rem 3rem !important;
    border-radius: 0 !important;
    text-decoration: none !important;

    display: block !important;
    width: max-content !important;
    margin: 20px auto 0 !important;

    transition: background-color 0.3s ease;
}



/* =========================================
   BLOC MEDIA GAUCHE / TEXTE DROITE
   Image : 450 px de large
   Hauteur : s'adapte automatiquement au texte
   ========================================= */

.wp-block-media-text {
    width: 100% !important;
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
    padding: 0 !important;

    display: grid !important;
    grid-template-columns: 450px minmax(0, 1fr) !important;

    background-color: #f8f8f2 !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: hidden !important;

    /* La hauteur est déterminée par le contenu texte */
    align-items: stretch !important;
}


/* =========================================
   IMAGE
   ========================================= */

.wp-block-media-text__media {
    width: 450px !important;
    height: 100% !important;
    min-height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-self: stretch !important;

    line-height: 0 !important;
    overflow: hidden !important;
}

.wp-block-media-text__media img {
    width: 450px !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;

    object-fit: cover !important;
    object-position: center center !important;

    border-radius: 0 !important;
}


/* =========================================
   TEXTE
   ========================================= */

.wp-block-media-text__content {
    min-width: 0 !important;

    padding: 4rem 2.9rem !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;

    background-color: #f8f8f2 !important;
}


/* =========================================
   TITRES
   ========================================= */

.wp-block-media-text__content h1,
.wp-block-media-text__content h2,
.wp-block-media-text__content h3 {
    font-family: var(--font-display);
    color: #111111 !important;
    font-size: 36px;
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;

    line-height: 1.2 !important;
    text-align: left !important;

    font-weight: 600;
    letter-spacing: -0.02em;
}


/* =========================================
   PARAGRAPHES
   ========================================= */

.wp-block-media-text__content p {
    font-family: var(--serif);
    font-size: 1.10rem !important;
    color: #333333 !important;

    line-height: 1.6 !important;

    max-width: 95% !important;

    margin-top: 0 !important;
    margin-bottom: 2.5rem !important;

    text-align: left !important;
    text-align-last: left !important;
}


/* Suppression du drop-cap */

.wp-block-media-text__content p::first-letter,
.wp-block-media-text__content p.has-drop-cap:not(:focus)::first-letter {
    font-size: inherit !important;
    font-weight: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    color: inherit !important;
    line-height: inherit !important;
    font-family: inherit !important;
}


/* =========================================
   BOUTON
   ========================================= */

.wp-block-media-text__content .wp-block-button__link {
    background-color: #2c3035 !important;
    color: #ffffff !important;

    font-family: var(--sans);

    padding: 1rem 3rem !important;

    text-decoration: none !important;
    font-size: 1rem !important;

    border-radius: 0 !important;

    transition: background-color 0.3s ease;

    display: inline-block !important;
    margin-left: 0 !important;
}

.wp-block-media-text__content .wp-block-button__link:hover {
    background-color: #111111 !important;
}


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

@media (max-width: 900px) {

    .wp-block-media-text {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }

    .wp-block-media-text__media {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .wp-block-media-text__media img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 3 / 2 !important;
        object-fit: cover !important;
    }

    .wp-block-media-text__content {
        padding: 3rem 2rem !important;
    }
}

/* BLOC 3 COLONNES */
.wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 2.5rem !important; 
    margin-bottom: 1rem !important;
}

.wp-block-columns .wp-block-column {
    flex-basis: unset !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important; 
}

.wp-block-columns .wp-block-image img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 3 !important; 
    object-fit: cover !important;
    border-radius: 0px !important; 
    margin-bottom: 1rem !important;
}

.wp-block-columns h1, 
.wp-block-columns h2, 
.wp-block-columns h3, 
.wp-block-columns h4, 
.wp-block-columns p {
    margin: 0 0 0.3rem 0 !important;
    text-align: left !important;
}

/* SIDEBAR PREMIUM UX STYLES (Gentleman Flair) */

.sidebar {
  border-left: 1px solid var(--color-line);
  padding-left: 40px;
}

.latest-sidebar,
.category-sidebar,
.article-sidebar {
  padding-left: 50px;
  border-left: 1px solid var(--color-line);
  height: 100%;
}

.sidebar-block {
  margin-bottom: 40px;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
	font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 8px;
    margin-bottom: 20px;
    color: #111111;
}

.trending-item {
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.sidebar-featured-vertical-list {
    display: flex;
    flex-direction: column;
}

.sidebar-featured-item-vertical {
    margin-bottom: 30px; 
}

.sidebar-featured-item-vertical:last-child {
    margin-bottom: 0; 
}

.sidebar-img-wrapper {
    display: block;
    width: 100%;
    overflow: hidden;
    margin-bottom: 12px;
}

.sidebar-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sidebar-img-wrapper:hover img {
    transform: scale(1.03);
}

.category-tag {
    font-size: 12px;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8c8c8c;
    display: block;
    margin-bottom: 4px;
}

.sidebar-item-title a {
    font-size: 20px; 
    font-weight: 500;
    line-height: 1.35;
	letter-spacing: -.02em;	
    margin: 0;
}

.trending-title a {
    color: #111111;
    font-size: 17px;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-item-title a:hover,
.trending-title a:hover {
    color: #7f7f7f;
}

.sidebar-post {
  padding-bottom: 25px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border);
}

.sidebar-post img {
  width: 95px;
  height: 95px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-post-title {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
}

.sidebar-trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px dashed #eaeaea;
}

.trending-rank {
    font-size: 1.8rem;
    font-weight: 500;
    color: #b7b7b7;
    line-height: 1;
    min-width: 35px;
}

.trending-text {
    flex-grow: 1;
}

.category-tag-xs {
    font-size: 0.65rem;
	font-family: var(--sans);
    text-transform: uppercase;
	letter-spacing: 1px;
    color: #888;
    display: block;
    margin-bottom: 2px;
}

.trending-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

/* --- WIDGET TAGS SIDEBAR --- */
.widget-tags {
    margin-bottom: 40px;
    font-family: var(--sans);
}

.widget-tags .widget-title {
    font-family: inherit; 
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: #111111;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea; 
}

.widget-tags .tags-cloud,
.tags-cloud-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; 
}

.widget-tags .tag-item,
.tag-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: #555555;
    text-decoration: none;
    background-color: transparent;
    padding: 6px 14px;
    border: 1px solid #dddddd;
    border-radius: 0px; 
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

.widget-tags .tag-item:hover,
.tag-pill:hover {
    color: #ffffff;
    background-color: #111111; 
    border-color: #111111;
    transform: translateY(-1px); 
}


/* ==========================================================================
   LAYOUT ARCHIVES & TAGS (Remplacement Tailwind)
   ========================================================================== */

/* Structure du Hero (Page 1) */
.tag-hero-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

@media (min-width: 1024px) {
    .tag-hero-grid {
        flex-direction: row;
        align-items: center;
    }
    
    .tag-hero-image {
        width: 58%;
        flex: 0 0 58%;
    }
    
    .tag-hero-content {
        width: 42%;
        flex: 0 0 42%;
        padding-left: 1rem;
    }
}

/* Structure de la Grille d'articles (3 colonnes) */
.tag-articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
}

@media (min-width: 768px) {
    .tag-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tag-articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Fixation des images pour éviter tout débordement */
.tag-hero-image a,
.tag-articles-grid article a {
    width: 100%;
    display: block;
}

.tag-hero-image img,
.tag-articles-grid article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Container global centré */
.tag-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Layout du Hero */
.tag-hero-card {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--line, #e5e5e5);
}

@media (min-width: 1024px) {
    .tag-hero-card {
        flex-direction: row;
        align-items: center;
    }
    .tag-hero-media {
        width: 60%;
        flex: 0 0 60%;
    }
    .tag-hero-body {
        width: 40%;
        flex: 0 0 40%;
    }
}

/* Layout de la Grille (3 colonnes) */
.tag-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem 2rem;
    width: 100%;
}

@media (min-width: 640px) {
    .tag-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tag-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Normalisation des images */
.tag-hero-media img,
.tag-grid article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



/* SECTION GF THE DIARY */
.gf-first-screen {
    padding: 40px 0 80px;
}

.gf-diary-header {
    margin-bottom: 40px;
    max-width: 700px;
}

.gf-diary-label {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #9b7b4f;
    font-weight: 600;
}

.gf-diary-header h1 {
    font-family: var(--serif);
    font-size: 48px;
    line-height: 1.15;
    font-weight: 600;
    margin: 0;
}

.gf-first-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.gf-main-story {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.gf-main-image {
    position: relative;
}

.gf-main-image img {
    width: 100%;
    height: 720px;
    object-fit: cover;
    display: block;
}

.gf-main-image:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.7),
        rgba(0,0,0,0.1)
    );
}

.gf-main-overlay {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    color: white;
}

.gf-category {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
    color: #d8b26a;
}

.gf-main-overlay h2 {
    font-family: var(--serif);
    font-size: 52px;
    line-height: 1.08;
    margin-bottom: 15px;
}

.gf-main-overlay p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 550px;
}

.gf-side-stories {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.gf-side-story img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 18px;
}

.gf-side-content h3 {
    font-family: var(--serif);
    font-size: 26px;
    line-height: 1.25;
}


/* =========================================================
   HERO HOMEPAGE
========================================================= */


.hero-hero {
    position: relative;
    aspect-ratio: 3 / 2;
    max-height: 650px; /* Ajout de la limite de hauteur */
    overflow: hidden;
	    width: 100%;

}

.hero-hero img {
    position: absolute; /* Permet de s'affranchir de la balise <a> parente */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Empêche la déformation de l'image */
    transition: transform .8s ease;
}

.hero-hero:hover img {
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 160px 50px 45px;
    color: white;
    background: linear-gradient(
        transparent,
        rgba(0,0,0,.84)
    );
}

.hero-overlay .article-meta {
    color: white;
}

/* Modification du clamp de base pour plus de fluidité */
.hero-overlay h2 {
    max-width: 900px;
    margin: 12px 0 0;
    /* On abaisse la taille minimum à 28px au lieu de 42px */
    font-size: clamp(28px, 6vw, 65px); 
    line-height: .94;
    font-weight: 400;
    font-family: var(--font-display);
}

@media (max-width: 900px) {
    /* Remplacement de .motor-hero par la classe existante .hero-hero */
    .hero-hero {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 600px) {
    /* 1. Donner plus de hauteur à l'image sur mobile */
    .hero-hero {
        /* Un format plus carré (4/3 ou 1/1) rend mieux sur mobile */
        aspect-ratio: 4 / 5; /* ou 1/1 pour un carré parfait */
        /* Optionnel : vous pouvez aussi utiliser un min-height pour garantir une hauteur visuelle */
        min-height: 60vh; 
    }

    /* 2. Réduire drastiquement les marges intérieures (padding) sur mobile */
    .hero-overlay {
        padding: 80px 20px 24px; /* 20px sur les côtés au lieu de 50px */
        background: linear-gradient(
            transparent 20%, /* Laisse le haut de l'image plus clair */
            rgba(0,0,0,.85)
        );
    }

    /* 3. Ajuster la taille du titre */
    .hero-overlay h2 {
        font-size: 32px; /* Forcer une taille raisonnable sur très petits écrans */
        line-height: 1.1; /* Améliore la lisibilité avec un texte plus petit */
    }
}

/* S'assure que tous les liens dans l'overlay héritent de la couleur blanche */
.hero-overlay a {
    color: white;
    text-decoration: none; /* Enlève le soulignement si votre thème en ajoute un par défaut */
}

/* Optionnel : ajouter un léger effet au survol du titre pour l'UX */
.hero-overlay h2 a:hover {
    opacity: 0.8;
}


/* =========================================================
   WATCHES — DARK HOMEPAGE
========================================================= */

.watches {
    background: #171717;

    color: white;

    padding: 85px 0;
}



.watches .section-intro h2 {
     color: white;
	 font-size: clamp(40px, 4.5vw, 58px);
    font-family: var(--sans);
}



.watches .eyebrow,
.watches .section-intro p,
.watches .article-meta {
        color: white;

}

.watch-grid {
    display: grid;

    grid-template-columns: 7fr 5fr;

    gap: 32px;
}

.watch-main-image {
    aspect-ratio: 4 / 3;

    overflow: hidden;
}

.watch-main h3 {
    margin: 15px 0 0;

    font-family: var(--sans);

    font-size: clamp(36px, 3.5vw, 53px);

    line-height: .96;

    font-weight: 500;

    color: white;
}

.watch-side {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 25px;
}

.watch-side article img {
    aspect-ratio: 1 / 1;
	object-fit: cover;
    width: 100%;
}

.watch-side h3 {
    margin: 10px 0 0;

    font-family: var(--sans);

    font-size: 22px;

    line-height: 1.03;

    font-weight: 500;

    color:white;
}


/* =========================================================
   MOTORS HOMEPAGE
========================================================= */

.motors {
    padding-top: 95px;
}

.motor-hero {
    position: relative;
    aspect-ratio: 3 / 2;
    max-height: 650px; /* Ajout de la limite de hauteur */
    overflow: hidden;
	    width: 100%;

}

.motor-hero img {
    position: absolute; /* Permet de s'affranchir de la balise <a> parente */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Empêche la déformation de l'image */
    transition: transform .8s ease;
}

.motor-hero:hover img {
    transform: scale(1.02);
}

.motor-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 160px 50px 45px;
    color: white;
    background: linear-gradient(
        transparent,
        rgba(0,0,0,.84)
    );
}

.motor-overlay .article-meta {
    color: white;
}

/* Modification du clamp de base pour plus de fluidité */
.motor-overlay h2 {
    max-width: 900px;
    margin: 12px 0 0;
    /* On abaisse la taille minimum à 28px au lieu de 42px */
    font-size: clamp(28px, 6vw, 65px); 
    line-height: .94;
    font-weight: 400;
    font-family: var(--font-display);
}

@media (max-width: 900px) {
    /* Remplacement de .motor-hero par la classe existante .hero-hero */
    .motor-hero {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 600px) {
    /* 1. Donner plus de hauteur à l'image sur mobile */
    .motor-hero {
        /* Un format plus carré (4/3 ou 1/1) rend mieux sur mobile */
        aspect-ratio: 4 / 5; /* ou 1/1 pour un carré parfait */
        /* Optionnel : vous pouvez aussi utiliser un min-height pour garantir une hauteur visuelle */
        min-height: 60vh; 
    }

    /* 2. Réduire drastiquement les marges intérieures (padding) sur mobile */
    .motor-overlay {
        padding: 80px 20px 24px; /* 20px sur les côtés au lieu de 50px */
        background: linear-gradient(
            transparent 20%, /* Laisse le haut de l'image plus clair */
            rgba(0,0,0,.85)
        );
    }

    /* 3. Ajuster la taille du titre */
    .motor-overlay h2 {
        font-size: 32px; /* Forcer une taille raisonnable sur très petits écrans */
        line-height: 1.1; /* Améliore la lisibilité avec un texte plus petit */
    }
}

/* S'assure que tous les liens dans l'overlay héritent de la couleur blanche */
.motor-overlay a {
    color: white;
    text-decoration: none; /* Enlève le soulignement si votre thème en ajoute un par défaut */
}

/* Optionnel : ajouter un léger effet au survol du titre pour l'UX */
.motor-overlay h2 a:hover {
    opacity: 0.8;
}


/* =========================================================
   GOURMET HOMEPAGE
========================================================= */


.gourmet-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 70px;
    align-items: center;
}

.gourmet-content {
    max-width: 520px;
}

.gourmet-content h2 {
    margin: 18px 0 22px;
    font-family: var(--font-display);
    font-size: clamp(43px, 4.2vw, 60px);
    line-height: .94;
    font-weight: 500;
}


.gourmet-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}



/* =========================================================

   RESPONSIVE

========================================================= */



@media (max-width: 900px) {

    .featured-header,
    .section-intro,
    .essentials-header {
        grid-template-columns: 1fr;
        display: grid;
        gap: 24px;
    }

    .featured-header p {
        margin-top: 0;
    }

    .featured-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .featured-main .editorial-content {
        max-width: 650px;
    }

    .featured-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 22px;
    }

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 22px;
    }

    .essentials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px 18px;
    }

    .editorial-grid,
    .watch-grid,
    .gourmet-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .escape-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .motor-hero {
        aspect-ratio: 16 / 10;
    }


}



@media (max-width: 600px) {

    .section {
        padding: 58px 0;
    }

    .featured {
        padding-top: 30px;
    }

    .featured-header h1 {
        font-size: 45px;
    }

    .featured-main .editorial-content h2 {
        font-size: 38px;
    }

    .featured-subheader {
        margin-top: 48px;
    }

    .featured-cards {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .featured-card h3 {
        font-size: 27px;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .essentials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .guides-grid {
        grid-template-columns: 1fr;
    }

    .escape-grid {
        grid-template-columns: 1fr;
    }

    .watch-side {
        grid-template-columns: 1fr 1fr;
    }

    .motor-hero {
        aspect-ratio: 4 / 3;
    }

    .motor-overlay {
        padding: 120px 25px 28px;
    }

    .motor-overlay h2 {
        font-size: 40px;
    }


}



@media (max-width: 430px) {

    .essentials-grid {
        grid-template-columns: 1fr 1fr;
    }

    .essential-card h3 {
        font-size: 18px;
    }

    .watch-side {
        grid-template-columns: 1fr;
    }
	
/* =========================================
   FOOTER GENTLEMAN FLAIR — VERSION NOIRE
   ========================================= */

footer {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-top-color: rgba(255,255,255,0.18) !important;
}

footer p,
footer span,
footer li,
footer a {
    color: #ffffff !important;
}

footer .text-ink-muted {
    color: rgba(255,255,255,0.60) !important;
}

footer a:hover {
    color: var(--color-accent) !important;
}

footer .hairline {
    border-top-color: rgba(255,255,255,0.18) !important;
}

footer .hairline-vert {
    background-color: rgba(255,255,255,0.18) !important;
}

footer svg {
    color: #ffffff !important;
}

footer img {
    filter: invert(1);
}

}