/* =============================================================================
   tilleul.fr — habillage 2026
   -----------------------------------------------------------------------------
   Langage repris du kakémono « Aromatiques en pots » (sept. 2026) :
   bandes pleine largeur, aplats francs, photographie dominante.
   Aucun arrondi, aucune ombre portée, aucun dégradé — c'est voulu.

   Identité transitoire : tout est en variables. Quand la charte des 50 ans
   arrivera, ce bloc :root est le seul endroit à reprendre.
   ============================================================================ */

:root {
    /* Couleurs — kakémono 2026. Le vert émeraude du logo (P 7482 C) reste
       À L'INTÉRIEUR du logo : deux verts clairs à l'écran se battraient. */
    --tl-vert-fonce: #016635;
    --tl-vert-bio:   #5ab031;
    --tl-orange:     #ea5b0c;

    --tl-encre:      #1b2a21;
    --tl-encre-doux: #4a5a50;
    --tl-blanc:      #ffffff;
    --tl-preuve:     #f1f4ef;   /* fond des zones de preuve */
    --tl-filet:      #dfe4da;

    /* Typographie — Typekit ezb1ukd : urca + avenir-next-lt-pro(-condensed).
       Les substituts tiennent la page si le kit ne charge pas. */
    --tl-font-titre: "urca", "Avenir Next", Optima, "Iowan Old Style", Georgia, serif;
    --tl-font-texte: "avenir-next-lt-pro", "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
    --tl-font-label: "avenir-next-lt-pro-condensed", "Avenir Next Condensed", "Helvetica Neue", sans-serif;

    /* Rythme */
    --tl-gouttiere: 20px;
    --tl-largeur:   1240px;
    --tl-texte-max: 62ch;
    --tl-bande:     clamp(56px, 9vw, 120px);  /* respiration verticale des bandes */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--tl-blanc);
    color: var(--tl-encre);
    font-family: var(--tl-font-texte);
    font-size: clamp(17px, 1.05rem + 0.2vw, 19px);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
    font-family: var(--tl-font-titre);
    font-weight: 700;
    line-height: 1.08;
    margin: 0;
    text-wrap: balance;
}

/* ---- Enveloppes ---------------------------------------------------------- */

.tl-large {                      /* bande pleine largeur */
    padding-inline: var(--tl-gouttiere);
}
.tl-dedans {                     /* colonne de contenu */
    max-width: var(--tl-largeur);
    margin-inline: auto;
}
.tl-bande  { padding-block: var(--tl-bande); }
.tl-texte  { max-width: var(--tl-texte-max); }

.tl-sombre { background: var(--tl-vert-fonce); color: var(--tl-blanc); }
.tl-preuve { background: var(--tl-preuve); }

/* Sur-titre : condensé, capitales, espacé. L'équivalent des petites étiquettes
   vertes du kakémono. */
.tl-surtitre {
    font-family: var(--tl-font-label);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--tl-vert-bio);
    margin: 0 0 .9rem;
}
.tl-sombre .tl-surtitre { color: var(--tl-vert-bio); }

/* ---- En-tête ------------------------------------------------------------- */

.tl-entete {
    position: sticky; top: 0; z-index: 50;
    background: var(--tl-blanc);
    border-bottom: 1px solid var(--tl-filet);
}
.tl-entete__dedans {
    max-width: var(--tl-largeur); margin-inline: auto;
    display: flex; align-items: center; gap: 14px;
    padding: 10px var(--tl-gouttiere);
}
/* Le logo est carré et son texte est petit : il se pose, il ne s'étale pas. */
.tl-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.tl-logo img { width: 52px; height: 52px; }
.tl-logo__ligne {
    font-family: var(--tl-font-label);
    font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--tl-encre-doux); line-height: 1.35;
}
.tl-logo__ligne strong { display: block; color: var(--tl-vert-fonce); font-weight: 700; }

.tl-nav { margin-left: auto; }
.tl-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.tl-nav a {
    font-family: var(--tl-font-label);
    font-size: .84rem; letter-spacing: .08em; text-transform: uppercase;
    text-decoration: none; color: var(--tl-encre);
    padding-block: .4rem; border-bottom: 2px solid transparent;
}
.tl-nav a:hover, .tl-nav a[aria-current="page"] {
    color: var(--tl-vert-fonce); border-bottom-color: var(--tl-orange);
}
.tl-burger { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.tl-burger span { display: block; width: 26px; height: 2px; background: var(--tl-encre); margin: 5px 0; }

@media (max-width: 860px) {
    .tl-burger { display: block; }
    .tl-nav {
        display: none; position: absolute; inset: 100% 0 auto 0;
        background: var(--tl-blanc); border-bottom: 1px solid var(--tl-filet);
        padding: .5rem var(--tl-gouttiere) 1.2rem;
    }
    .tl-nav[data-ouvert="oui"] { display: block; }
    .tl-nav ul { flex-direction: column; gap: 0; }
    .tl-nav a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--tl-filet); }
}

/* ---- Ouverture ----------------------------------------------------------- */

.tl-ouverture { position: relative; background: var(--tl-vert-fonce); }
.tl-ouverture img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 760px) { .tl-ouverture img { aspect-ratio: 16 / 7; } }

/* Le bandeau mord sur la photo, comme les bandeaux du kakémono. */
.tl-ouverture__bandeau {
    background: var(--tl-vert-fonce);
    color: var(--tl-blanc);
    padding: 1.6rem var(--tl-gouttiere) 2rem;
}
@media (min-width: 760px) {
    .tl-ouverture__bandeau {
        position: absolute; left: 0; right: 0; bottom: 0;
        background: color-mix(in srgb, var(--tl-vert-fonce) 92%, transparent);
        padding-block: 2rem 2.4rem;
    }
}
.tl-ouverture__dedans { max-width: var(--tl-largeur); margin-inline: auto; }

/* ---- Lettrine ------------------------------------------------------------ */

.tl-lettrine::first-letter {
    font-family: var(--tl-font-titre);
    font-weight: 700;
    float: left;
    font-size: 3.4em;
    line-height: .82;
    padding: .06em .12em 0 0;
    color: var(--tl-vert-fonce);
}

.tl-intro p { font-size: 1.12em; }
.tl-lieu {
    font-family: var(--tl-font-label);
    text-transform: uppercase; letter-spacing: .11em; font-size: .82rem;
    color: var(--tl-encre-doux);
    border-top: 2px solid var(--tl-orange);
    padding-top: .9rem; margin-top: 2.2rem; display: inline-block;
}

/* ---- Bandes métier (image / texte alternés) ------------------------------ */

.tl-metier { display: grid; gap: 0; }
.tl-metier + .tl-metier { border-top: 1px solid var(--tl-filet); }
.tl-metier__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tl-metier__texte {
    padding: clamp(2rem, 7vw, 4rem) var(--tl-gouttiere);
    align-self: center;
}
.tl-metier h2 { font-size: clamp(1.5rem, 4.4vw, 2.1rem); margin-bottom: .7rem; }
.tl-metier p { margin: 0; max-width: 46ch; }

@media (min-width: 860px) {
    .tl-metier { grid-template-columns: 1fr 1fr; align-items: stretch; }
    .tl-metier__image img { height: 100%; aspect-ratio: auto; min-height: 420px; }
    .tl-metier__texte { padding-inline: clamp(2rem, 5vw, 4.5rem); }
    /* une bande sur deux inverse le sens de lecture */
    .tl-metier:nth-child(even) .tl-metier__image { order: 2; }
}

/* ---- Le geste ------------------------------------------------------------ */

.tl-geste { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 860px) { .tl-geste { grid-template-columns: 1.15fr .85fr; align-items: center; } }
/* Deux vignettes côte à côte sur un téléphone, ce sont deux petites images.
   On les empile : deux grandes valent mieux que deux timbres-poste. */
.tl-geste__images { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tl-geste__images img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (min-width: 620px) {
    .tl-geste__images { grid-template-columns: 1fr 1fr; gap: 10px; }
    .tl-geste__images img { aspect-ratio: 3 / 4; }
}
.tl-geste h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); margin-bottom: 1rem; }

/* ---- Repères (zone de preuve) -------------------------------------------- */

.tl-reperes { display: grid; gap: 1px; background: var(--tl-filet); }
@media (min-width: 620px) { .tl-reperes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .tl-reperes { grid-template-columns: repeat(4, 1fr); } }
.tl-repere { background: var(--tl-preuve); padding: clamp(1.6rem, 4vw, 2.4rem) 1.4rem; }
.tl-repere__chiffre {
    font-family: var(--tl-font-titre); font-weight: 700;
    font-size: clamp(1.9rem, 5vw, 2.5rem); line-height: 1;
    color: var(--tl-vert-fonce); display: block;
}
.tl-repere__quoi {
    font-family: var(--tl-font-label);
    text-transform: uppercase; letter-spacing: .1em; font-size: .78rem;
    color: var(--tl-encre-doux); margin-top: .6rem; display: block;
}

.tl-certifs { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.4rem; list-style: none; padding: 0; }
.tl-certifs li {
    font-family: var(--tl-font-label);
    text-transform: uppercase; letter-spacing: .08em; font-size: .76rem;
    border: 2px solid var(--tl-vert-fonce); color: var(--tl-vert-fonce);
    padding: .45rem .8rem;
}

/* ---- La maison ----------------------------------------------------------- */

.tl-maison img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tl-maison__texte { padding-top: clamp(1.6rem, 4vw, 2.6rem); }
.tl-maison h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); margin-bottom: 1rem; }

/* ---- Contact ------------------------------------------------------------- */

.tl-contact { display: grid; gap: clamp(1.8rem, 5vw, 3.5rem); }
@media (min-width: 860px) { .tl-contact { grid-template-columns: 1fr 1fr; } }
.tl-contact h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); margin-bottom: 1.2rem; }
.tl-coord { font-style: normal; line-height: 1.9; }
.tl-coord a { color: var(--tl-blanc); text-decoration-color: var(--tl-vert-bio); text-underline-offset: 4px; }

.tl-bouton {
    display: inline-block;
    font-family: var(--tl-font-label);
    text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; font-weight: 700;
    background: var(--tl-orange); color: var(--tl-blanc);
    padding: .95rem 1.6rem; text-decoration: none;
    border: 2px solid var(--tl-orange);
}
.tl-bouton:hover { background: transparent; color: var(--tl-orange); }
.tl-bouton--clair { background: transparent; color: var(--tl-blanc); border-color: var(--tl-blanc); }
.tl-bouton--clair:hover { background: var(--tl-blanc); color: var(--tl-vert-fonce); }

/* Emplacement prévu mais non rempli — assumé visuellement, pas masqué. */
.tl-aprevoir {
    border: 2px dashed var(--tl-filet);
    padding: clamp(1.4rem, 4vw, 2rem);
    color: var(--tl-encre-doux);
}
.tl-aprevoir strong { color: var(--tl-encre); display: block; font-family: var(--tl-font-titre); font-size: 1.2rem; margin-bottom: .4rem; }

/* ---- Pied de page -------------------------------------------------------- */

.tl-pied { background: var(--tl-encre); color: var(--tl-blanc); }
.tl-pied__dedans {
    max-width: var(--tl-largeur); margin-inline: auto;
    padding: clamp(2.4rem, 6vw, 3.6rem) var(--tl-gouttiere);
    display: grid; gap: 2.2rem;
}
@media (min-width: 860px) { .tl-pied__dedans { grid-template-columns: auto 1fr auto; align-items: start; } }
.tl-pied img { width: 86px; }
.tl-pied__signature { font-family: var(--tl-font-titre); font-size: 1.25rem; line-height: 1.4; }
.tl-pied__signature span { display: block; font-family: var(--tl-font-texte); font-size: .92rem; color: #b9c6bd; }
.tl-pied address { font-style: normal; font-size: .9rem; color: #b9c6bd; line-height: 1.7; }
.tl-pied a { color: var(--tl-blanc); }
.tl-reseaux { display: flex; gap: 1rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.tl-reseaux a {
    font-family: var(--tl-font-label); text-transform: uppercase;
    letter-spacing: .08em; font-size: .76rem; text-decoration: none;
    border-bottom: 2px solid var(--tl-vert-bio); padding-bottom: 2px;
}
.tl-mentions { font-size: .8rem; color: #8b998f; border-top: 1px solid #2e3d33; }
.tl-mentions div { max-width: var(--tl-largeur); margin-inline: auto; padding: 1rem var(--tl-gouttiere); }

/* ---- Accessibilité ------------------------------------------------------- */

:focus-visible { outline: 3px solid var(--tl-orange); outline-offset: 2px; }
.tl-saut {
    position: absolute; left: -9999px;
    background: var(--tl-vert-fonce); color: #fff; padding: .8rem 1.2rem; z-index: 100;
}
.tl-saut:focus { left: 0; top: 0; }

/* =============================================================================
   Carrousel d'accueil
   -----------------------------------------------------------------------------
   La mécanique (affichage des diapositives, glissement, pastilles, commandes)
   vient de bootstrap-tilleul.css — un Bootstrap compilé pour ce site, réduit au
   carrousel et débarrassé de ses arrondis, ombres et dégradés. Voir
   resources/scss/bootstrap-tilleul.scss.

   Il ne reste ici que ce qui est propre à Tilleul : le placement des pastilles,
   la lisibilité des commandes sur photo, et le contenu du bandeau.
   ============================================================================ */

/* Bootstrap centre les pastilles en bas ; le bandeau occupe déjà ce coin. */
.tl-ouverture .carousel-indicators {
    top: 14px; bottom: auto;
    left: var(--tl-gouttiere); right: auto;
    justify-content: flex-start;
    margin: 0;
}

/* Les chevrons de Bootstrap se perdent sur une photo claire : on leur pose une
   plaque. `background-color` seul — un `background` effacerait le chevron SVG. */
.tl-ouverture .carousel-control-prev-icon,
.tl-ouverture .carousel-control-next-icon {
    background-color: color-mix(in srgb, var(--tl-vert-fonce) 78%, transparent);
    padding: 1.1rem;
    background-size: 1.6rem;
    background-position: center;
}
.tl-ouverture .carousel-control-prev:hover .carousel-control-prev-icon,
.tl-ouverture .carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--tl-orange);
}

/* Classe posée par la brique ; ici c'est le <picture> qui fixe le cadrage. */
.billboard-ratio, .billboard-ratio-2x1, .billboard-ratio-10x16 { aspect-ratio: auto; }
/* La brique ajoute aussi `border` (classe Bootstrap non importée) : sans effet. */

/* ---- Contenu d'une diapositive ------------------------------------------- */

.tl-diapo__titre {
    font-family: var(--tl-font-titre); font-weight: 700;
    font-size: clamp(1.9rem, 5.2vw, 3.2rem); line-height: 1.08;
    margin: 0; letter-spacing: -.015em;
}
.tl-diapo__texte {
    margin: .7rem 0 0; max-width: 42ch;
    color: #d9e8de; font-size: clamp(.98rem, 2.6vw, 1.1rem);
}
.tl-diapo__lien {
    display: inline-block; margin-top: 1.2rem;
    font-family: var(--tl-font-label);
    text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; font-weight: 700;
    color: var(--tl-blanc); text-decoration: none;
    border-bottom: 2px solid var(--tl-orange); padding-bottom: 3px;
}
.tl-diapo__lien:hover { color: var(--tl-vert-bio); }

/* Les commandes mordraient sur le texte du bandeau : on le décale. */
@media (min-width: 760px) {
    .tl-ouverture .carousel-item .tl-ouverture__bandeau { padding-inline: calc(var(--tl-gouttiere) + 64px); }
}

/* ---- Titre de page, sous le carrousel ------------------------------------ */

.tl-titre-page { padding-block: clamp(2.2rem, 6vw, 3.4rem) 0; }
.tl-titre-page h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); max-width: 18ch; }
.tl-titre-page p  { margin: .9rem 0 0; max-width: 46ch; color: var(--tl-encre-doux); }

/* =============================================================================
   Pages éditoriales
   ============================================================================ */

/* Têtière de page.
   En blanc, elle s'enchaînait à l'en-tête blanc puis au contenu blanc : trois
   aplats sans rupture. Le vert foncé est la bande de tête du kakémono, et il
   laisse l'orange à son rôle d'accent — un filet qui marque la rupture, pas un
   fond qui ferait de l'orange la couleur dominante de toutes les pages. */
.tl-page-entete {
    background: var(--tl-vert-fonce);
    color: var(--tl-blanc);
    border-top: 4px solid var(--tl-orange);
    padding-block: clamp(2.2rem, 6vw, 3.4rem) clamp(2rem, 5vw, 3rem);
}
.tl-page-entete h1 {
    color: var(--tl-blanc);
    font-size: clamp(1.9rem, 5.4vw, 3rem);
    max-width: 18ch;
}
.tl-page-entete p {
    margin: 1rem 0 0;
    max-width: 56ch;
    color: #d9e8de;
}

/* Les bandes de contenu réutilisent .tl-metier ; on règle seulement le texte. */
.tl-metier h2 { margin-bottom: .9rem; }

.tl-texte-riche > :first-child { margin-top: 0; }
.tl-texte-riche > :last-child  { margin-bottom: 0; }
.tl-texte-riche p  { margin: 0 0 1.1rem; max-width: 46ch; }
.tl-texte-riche ul { margin: 0 0 1.1rem; padding-left: 0; list-style: none; max-width: 46ch; }
.tl-texte-riche li {
    position: relative; padding-left: 1.3rem; margin-bottom: .4rem;
}
/* Puce : un trait, pas un rond — même grammaire que les pastilles du carrousel. */
.tl-texte-riche li::before {
    content: ""; position: absolute; left: 0; top: .72em;
    width: 11px; height: 2px; background: var(--tl-orange);
}
.tl-texte-riche strong { color: var(--tl-vert-fonce); }
.tl-preuve .tl-texte-riche strong { color: var(--tl-vert-fonce); }

/* Une partie sans image occupe toute la largeur : le texte respire davantage. */
.tl-preuve .tl-texte-riche p,
.tl-preuve .tl-texte-riche ul { max-width: 62ch; }

/* Ancre visée par les redirections : on dégage la hauteur de l'en-tête collant. */
[id] { scroll-margin-top: 84px; }
