/* ============================================================
   GUIDE DES TAILLES — styles spécifiques (gdt.css)
   Chargé via $donnees['css'] dans gdt.php
============================================================ */

/* ============================================================
   AUTH-HEADER-FULL — à supprimer dès que main4.css sera actif
   (copiés depuis intfc.css ; nécessaire tant que prod tourne sur main3.css)
============================================================ */

.auth-header-full {
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 17px 0 35px 0;
    margin-bottom: 30px;
    text-align: center;
}

.header-inner {
    width: 95%;
    max-width: 950px;
    margin: 0 auto;
    position: relative;
    padding-top: 5px;
}

.header-flex-container {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.header-left-col {
    flex: 0 0 auto;
}

.header-main-image {
    display: block;
    max-width: 100px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.header-right-col {
    flex: 1;
}

#retour_btn_descro, #btn_deconnexion {
    position: absolute;
    top: -3px;
    right: 0;
    width: 32px;
    height: 32px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #777;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
#retour_btn_descro:hover, #btn_deconnexion:hover {
    color: var(--main-color);
    border-color: var(--main-color);
    box-shadow: 0 2px 8px rgba(255,131,48,0.2);
    transform: translateX(-2px);
}

/* reset des anciens styles tunnel (float, background-image...) présents dans intfc.css v3 */
.tunnel_titre {
    float: none;
    background: none;
    height: auto;
    line-height: normal;
    text-shadow: none;
    padding-left: 0;
    width: auto;
    text-indent: 0;
    font-size: 2.2em;
    font-weight: 600;
    margin: 15px 0;
    font-family: 'josefin', Verdana, "Segoe UI", "DejaVu Sans", "Trebuchet MS", sans-serif;
}

.tunnel_sous_title {
    float: none;
    width: auto;
    max-width: none;
    margin: 0;
    color: #858585;
    font-size: 1em;
    line-height: 1.5;
}

@media (max-width: 976px) {
    .auth-header-full {
        padding: 15px 0;
    }
    #retour_btn_descro, #btn_deconnexion {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 768px) {
    .header-flex-container {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 15px;
    }
    .header-main-image {
        max-width: 80px;
        margin: 0;
    }
    .tunnel_titre {
        font-size: 1.5em;
        margin-bottom: 15px;
        text-align: left;
    }
    .tunnel_sous_title {
        font-size: 11px;
    }
}

/* fin — à supprimer dès que main4.css sera actif */

/* ----- Page wrapper ----- */
.gdt-page {
    max-width: 1100px;
    margin: 30px auto 60px;
    padding: 0 20px;
    color: #444;
}

/* ----- Icône pied dans le header ----- */
.gdt-header-icon {
    width: 90px;
    height: auto;
    display: block;
    color: var(--main-color);
}

/* ----- Sections ----- */
.gdt-section {
    margin-bottom: 60px;
}
.gdt-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: "josefin", Verdana, Geneva, sans-serif;
    color: #222;
    margin: 0 0 30px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--main-color);
    display: inline-block;
}

/* ----- Mesure ----- */
.gdt-mesure__content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.gdt-steps {
    flex: 1 1 340px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.gdt-step {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.gdt-step__num {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--main-color);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gdt-step__text strong {
    display: block;
    font-size: 1rem;
    font-family: "josefin", Verdana, Geneva, sans-serif;
    color: #222;
    margin-bottom: 4px;
    text-align: left;
}
.gdt-step__text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    text-align: left;
}
.gdt-foot-illus {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.gdt-foot-illus img {
    width: 220px;
    height: auto;
    display: block;
}
.gdt-foot-illus figcaption {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    line-height: 1.4;
}

/* ----- Astuce chaussant ----- */
.gdt-chaussant {
    background: #fff8f3;
    border-left: 4px solid var(--main-color);
    border-radius: 0 10px 10px 0;
    padding: 14px 20px;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #555;
    width: 100%;
    box-sizing: border-box;
}
.gdt-chaussant strong { color: var(--main-color); }

/* ----- Onglets ----- */
.gdt-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: 2px solid #eee;
}
.gdt-tab {
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 700;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    color: #aaa;
    margin-bottom: -2px;
    transition: color .2s, border-color .2s;
}
.gdt-tab--active {
    color: var(--main-color);
    border-bottom-color: var(--main-color);
}

/* ----- Tableaux ----- */
.gdt-table-wrap {
    padding-top: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.gdt-table-wrap.gdt-hidden { display: none; }

.gdt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    table-layout: fixed;
}
.gdt-table thead th:nth-child(1) { width: 26%; } /* Pointure EU/FR */
.gdt-table thead th:nth-child(2) { width: 42%; } /* Longueur pied  */
.gdt-table thead th:nth-child(3) { width: 16%; } /* UK             */
.gdt-table thead th:nth-child(4) { width: 16%; } /* US             */
.gdt-table thead th {
    background: var(--main-color);
    color: #fff;
    padding: 12px 16px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.3;
}
.gdt-table thead th:first-child { border-radius: 8px 0 0 0; }
.gdt-table thead th:last-child  { border-radius: 0 8px 0 0; }
.gdt-table tbody tr:nth-child(even) { background: #fdf5ef; }
.gdt-table tbody tr:hover { background: #ffe8d8; transition: background .15s; }
.gdt-table td {
    padding: 11px 16px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}
.gdt-table td:first-child {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--main-color);
}

/* ----- Note sous les tableaux ----- */
.gdt-table-note {
    margin: 12px 0 0;
    font-size: 0.78rem;
    color: #aaa;
}

/* ----- Conseils ----- */
.gdt-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.gdt-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.gdt-card__icon {
    font-size: 2rem;
    line-height: 1;
}
.gdt-card__title {
    font-weight: 700;
    font-size: 0.95rem;
    font-family: "josefin", Verdana, Geneva, sans-serif;
    color: #222;
}
.gdt-card__text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

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

/* Tablette */
@media (max-width: 900px) {
    .gdt-mesure__content { gap: 30px; }
    .gdt-foot-illus { flex: 0 0 200px; }
    .gdt-foot-illus img { width: 180px; }
    .gdt-section h2 { font-size: 1.4rem; }
}

/* Mobile */
@media (max-width: 700px) {
    .gdt-page { margin: 16px auto 40px; padding: 0 14px; }
    .gdt-section { margin-bottom: 36px; }
    .gdt-section h2 { font-size: 1.25rem; }

    /* Mesure : illustration en dessous des étapes */
    .gdt-mesure__content { flex-direction: column; gap: 24px; }
    .gdt-foot-illus { flex-basis: auto; align-self: center; }
    .gdt-foot-illus img { width: 170px; }

    /* Onglets : occupent toute la largeur */
    .gdt-tab { flex: 1; text-align: center; padding: 10px 12px; font-size: 0.9rem; }

    /* Tables — pas de scroll, colonnes fixes */
    .gdt-table-wrap { overflow-x: visible; }
    .gdt-table { font-size: 0.85rem; }
    .gdt-table thead th { padding: 8px 5px; font-size: 0.75rem; letter-spacing: 0; }
    .gdt-table td { padding: 8px 5px; }
    .gdt-table td:first-child { font-size: 1rem; }

    /* Conseils : 1 colonne */
    .gdt-cards { grid-template-columns: 1fr; }

    .gdt-chaussant { font-size: 0.85rem; }
    .gdt-header-icon { width: 64px; }
}

/* Très petit écran */
@media (max-width: 420px) {
    .gdt-page { padding: 0 8px; }
    .gdt-tab { padding: 8px 6px; font-size: 0.8rem; }
    .gdt-table { font-size: 0.75rem; }
    .gdt-table thead th { padding: 7px 3px; }
    .gdt-table td { padding: 7px 3px; }
    .gdt-table td:first-child { font-size: 0.88rem; }
}
